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

78 lines
5.1 KiB
HTML

<?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 Xsockets in a Web browser" />
<meta name="abstract" content="This topic helps you work with the Xsockets tool in a Web browser." />
<meta name="description" content="This topic helps you work with the Xsockets tool in a Web browser." />
<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="websox" />
<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 Xsockets in a Web browser</title>
</head>
<body id="websox"><a name="websox"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">Use Xsockets in a Web browser</h1>
<div><p>This topic helps you work with the Xsockets tool in a Web browser.</p>
<div class="p"><p>Ensure that you have completed all the <a href="cxsockets.htm#cxsockets">Xsockets
configuration</a> and all the necessary <a href="xsockhttp.htm#xsockhttp">Web
browser configuration</a> before working with the Xsockets tool in a Web
browser. Also ensure that cookies are enabled</p>
</div>
<ol><li class="stepexpand"><span>In a Web browser, type:</span> <pre>http://server-name:2001/</pre>
where
server-name is the name of the iSeries™ that contains the server instance.</li>
<li class="stepexpand"><span> Select <span class="uicontrol">Administration</span>.</span></li>
<li class="stepexpand"><span>From the left navigation, select <span class="uicontrol">Manage HTTP Servers</span>.</span></li>
<li class="stepexpand"><span>Select your instance name, and click <span class="uicontrol">Start</span>.
You can also start the server instance from a command line by entering:</span> <pre>STRTCPSVR SERVER(*HTTP) HTTPSVR(&lt;instance_name&gt;)</pre>
where
&lt;instance_name&gt; is the name of your HTTP server created in the <a href="configapache.htm#configapache">Apache configuration</a>. For example,
you can use the server instance name xsocks. </li>
<li class="stepexpand"><span>To access the Xsockets Web application, enter this
URL in a browser:</span> <pre>http://&lt;system_name&gt;:&lt;port&gt;/xsock/index</pre>
where &lt;system_name&gt;
is the machine name of the iSeries and &lt;port&gt; is the port specified when
you created the HTTP instance. For example, if the system name is myiSeries
and the HTTP server instance listens on port 1025, you can enter: <pre>http://myiSeries:1025/xsock/index</pre>
</li>
<li class="stepexpand"><span>As soon as the Xsockets tool loads in the Web browser,
you can work with the existing socket descriptor or create new ones.</span> Many of the concepts are similar between the two versions of the tools.
Both tools allow you to issue socket calls interactively and both tools provide
errnos for issued socket calls; however, the interfaces do have some differences.
To create a new socket descriptor, follow these steps: <ol type="a"><li>From the <span class="uicontrol">Xsocket Menu</span>, select <span class="uicontrol">socket</span>. </li>
<li>In the <span class="uicontrol">Xsocket Query </span> window that displays, select
the appropriate Address Family, Socket Type, and Protocol for this socket
descriptor. Click <span class="uicontrol">Submit</span>.</li>
<li>As soon as the page reloads, the new socket descriptor is displayed in
the <span class="uicontrol">Socket</span> pull-down menu. </li>
<li>From the <span class="uicontrol">Xsocket Menu</span>, select function calls to
which you want to apply this socket descriptor. As with the integrated version
of the Xsockets tool, the tool automatically applies function calls to the
latest socket descriptor if you do not select a socket descriptor.</li>
</ol>
</li>
</ol>
</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>