ibm-information-center/dist/eclipse/plugins/i5OS.ic.rzab6_5.4.0.1/unative.htm

88 lines
5.4 KiB
HTML
Raw Normal View History

2024-04-02 14:02:31 +00:00
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en-us" xml:lang="en-us">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="security" content="public" />
<meta name="Robots" content="index,follow" />
<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' />
<meta name="DC.Type" content="task" />
<meta name="DC.Title" content="Use integrated Xsockets" />
<meta name="abstract" content="This topic helps you use Xsocket on an integrated client." />
<meta name="description" content="This topic helps you use Xsocket on an integrated client." />
<meta name="DC.Relation" scheme="URI" content="uxsockets.htm" />
<meta name="copyright" content="(C) Copyright IBM Corporation 2001, 2006" />
<meta name="DC.Rights.Owner" content="(C) Copyright IBM Corporation 2001, 2006" />
<meta name="DC.Format" content="XHTML" />
<meta name="DC.Identifier" content="unative" />
<meta name="DC.Language" content="en-us" />
<!-- All rights reserved. Licensed Materials Property of IBM -->
<!-- US Government Users Restricted Rights -->
<!-- Use, duplication or disclosure restricted by -->
<!-- GSA ADP Schedule Contract with IBM Corp. -->
<link rel="stylesheet" type="text/css" href="./ibmdita.css" />
<link rel="stylesheet" type="text/css" href="./ic.css" />
<title>Use integrated Xsockets</title>
</head>
<body id="unative"><a name="unative"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">Use integrated Xsockets</h1>
<div><p>This topic helps you use Xsocket on an integrated client.</p>
<div class="p"></div>
<ol><li class="stepexpand"><span>At a command line, add the library in which the
Xsockets tool exists to your library lists by issuing this command:</span> <pre>ADDLIBLE &lt;library-name&gt;</pre>
where the &lt;library-name&gt;
is the name of the library you created during integrated Xsockets configuration.
For example, if the name of the library is MYXSOCKET, then enter: <pre>ADDLIBLE MYXSOCKET</pre>
</li>
<li class="stepexpand"><span>On a command line interface, enter:</span> <pre> CALL TSOXSOCK</pre>
</li>
<li class="stepexpand"><span>From the Xsocket window that displays, you can
access all socket routines through its menu bar and selection field. This
window always displays after you choose a socket function. You can use this
interface to select socket programs that already exist. To work with a new
socket, follow these steps:</span><ol type="a"><li class="substepexpand"><span>In the list of socket functions, select <span class="uicontrol">socket </span> and
press Enter.</span></li>
<li class="substepexpand"><span>In the <span class="uicontrol"><span class="apiname">socket()</span> prompt</span> window
that displays, select the appropriate Address Family, Socket Type, and Protocol
for the socket, and press Enter.</span></li>
<li class="substepexpand"><span>Select <span class="uicontrol">Descriptor</span> and select <span class="uicontrol">Select
descriptor</span>.</span> <div class="note"><span class="notetitle">Note:</span> If other socket descriptors already
exist, this displays a list of active socket descriptors.</div>
</li>
<li class="substepexpand"><span>From the list that displays, select the socket descriptor that
you created. </span> <div class="note"><span class="notetitle">Note:</span> If other socket descriptors exist,
the tool automatically applies a socket function to the latest socket descriptor.</div>
</li>
</ol>
</li>
<li class="stepexpand"><span>From the list of socket functions, select a socket
function with which you want to work, whatever socket descriptor you chose
in step 3c is used on that socket function. As soon as you select a socket
function, a series of windows display where you can provide specific information
about the socket function. For example, if you select <span class="apiname">connect()</span>,
you need to provide the address length, address family, and address data in
the resulting windows. The socket function chosen is then called with this
information that you provided. Any errors that occur on a socket function
are displayed back to the user as an errno.</span></li>
</ol>
<div class="section"><div class="note"><span class="notetitle">Notes:</span> <ol><li>The Xsockets tool uses the graphical look support for DDS. Thus, how data
is entered and how selections are made from the windows/panels you see depend
on whether you are using a graphical display station or a nongraphical display
station. For example, on a graphical display station, you can see the selection
field for the socket functions as a check box; otherwise, you might see a
single field. </li>
<li>Be aware that there are <span class="apiname">ioctl()</span> requests that are available
on a socket which have not been implemented in the tool. </li>
</ol>
</div>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="uxsockets.htm" title="There are now two ways to work with the Xsockets tool. You can work with the tool from the integrated client or work with the tool in a Web browser.">Use Xsockets</a></div>
</div>
</div>
</body>
</html>