Use Xsockets in a Web browser

This topic helps you work with the Xsockets tool in a Web browser.

Ensure that you have completed all the Xsockets configuration and all the necessary Web browser configuration before working with the Xsockets tool in a Web browser. Also ensure that cookies are enabled

  1. In a Web browser, type:
    http://server-name:2001/
    where server-name is the name of the iSeries™ that contains the server instance.
  2. Select Administration.
  3. From the left navigation, select Manage HTTP Servers.
  4. 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.
  5. 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
  6. 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:
    1. From the Xsocket Menu, select socket.
    2. In the Xsocket Query window that displays, select the appropriate Address Family, Socket Type, and Protocol for this socket descriptor. Click Submit.
    3. As soon as the page reloads, the new socket descriptor is displayed in the Socket pull-down menu.
    4. 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.