This topic helps you work with the Xsockets tool in a Web browser.
- In a Web browser, type:
http://server-name:2001/
where
server-name is the name of the iSeries™ that contains the server instance.
- Select Administration.
- From the left navigation, select Manage HTTP Servers.
- Select your instance name, and click Start.
You can also start the server instance from a command line by entering:
STRTCPSVR SERVER(*HTTP) HTTPSVR(<instance_name>)
where
<instance_name> is the name of your HTTP server created in the Apache configuration. For example,
you can use the server instance name xsocks.
- To access the Xsockets Web application, enter this
URL in a browser:
http://<system_name>:<port>/xsock/index
where <system_name>
is the machine name of the iSeries and <port> 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: http://myiSeries:1025/xsock/index
- As soon as the Xsockets tool loads in the Web browser,
you can work with the existing socket descriptor or create new ones. 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:
- From the Xsocket Menu, select socket.
- In the Xsocket Query window that displays, select
the appropriate Address Family, Socket Type, and Protocol for this socket
descriptor. Click Submit.
- As soon as the page reloads, the new socket descriptor is displayed in
the Socket pull-down menu.
- From the Xsocket Menu, 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.