Integrated File System Introduction
Socket support
If your application is using the "root" (/), QOpenSys, or user-defined file systems, you can take advantage of the integrated file system local socket support. A local socket object (object type *SOCKET) allows two jobs running on the same system to establish a communications connection with each other.
One of the jobs establishes a connection point by using the bind() C language function to create a local socket object. The other job specifies the name of the local socket object on the connect(), sendto(), or sendmsg() function. These functions and the concepts of sockets in general are described in the Socket Programming topic in the iSeries Information Center.
After the connection is established, the two jobs can send data to and receive data from each other using the integrated file system functions such as write() and read(). None of the data that is transferred actually goes through the socket object. The socket object is just a meeting point where the two jobs can find each other.
When the two jobs are finished communicating, each job uses the close() function to close the socket connection. The local socket object remains in the system until it is removed using the unlink() function or the Remove Link (RMVLNK) command.
A local socket object cannot be saved.
[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]