IPX/SPX Programming Manual
Programming Using the Socket Interface
HP NonStop IPX/SPX Programming Manual—528022-001
3-11
IPX Client and Server Programs
IPX Client and Server Programs
Table 3-5 shows the steps performed by an IPX client and an IPX server in waited
operations.
For information about the binding of IPX sockets, see Usage/Bind Considerations on
page 5-7. The HP implementation ensures that the correct process is notified when a
broadcast message arrives.
Table 3-5. IPX—Waited Client and Server Steps
Client Server
1. Optionally, set NonStop IPX/SPX
process name
(socket_set_nv_name).
1. Optionally, set NonStop IPX/SPX
process name
(socket_set_nv_name).
2. Create a socket (socket). 2. Create a socket (socket).
3. Prepare to access a SAP table by
issuing the SAP_OPEN function.
3. Bind the socket to an IPX address
(bind).
4. Open the IPXPROTO process using
the SAP_OPEN function.
4. Issue a SAP query for the specified
service using the SAP_INFO
function.
5. Advertise service using the
SAP_START function.
5. Start data transfer (sendto and/or
recvfrom, usually in a loop).
OR
Specify the remote address for the
socket (connect). Then, start data
transfer (send and/or recv, usually
in a loop).
6. Start data transfer (recvfrom
and/or sendto, usually in a loop).
OR
Specify the remote address for the
socket (connect). Then, start data
transfer on the socket (recv and/or
send, usually in a loop).
6. Close the socket (CLOSE or
FILE_CLOSE_).
7. Close the socket (CLOSE or
FILE_CLOSE_).