IPX/SPX Programming Manual

Programming Using the Socket Interface
HP NonStop IPX/SPX Programming Manual528022-001
3-12
IPX Client and Server Programs
Table 3-6 lists the steps performed by an IPX client and an IPX server in nowait
operations.
Table 3-6. IPX—Nowait 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. a. Create a new socket
(socket_nw)with
(flags & 0xF1) nowait set.
b. Call AWAITIOX, followed by
SETMODE 30, followed by
AWAITIOX).
2. a. Create a new socket
(socket_nw)with
(flags & 0xF1) nowait set.
b. Call AWAITIOX, followed by
SETMODE 30, followed by
AWAITIOX).
3. Prepare to access a SAP table by
issuing the SAP_OPEN_NW function
followed by AWAITIOX.
3. Bind the socket to a well-known port
(bind_nw, followed by AWAITIOX).
4. Issue a SAP query for the specified
service using the SAP_INFO_NW
function followed by AWAITIOX).
4. Open the IPXPROTO process using
the SAP_OPEN_NW function, followed
by AWAITIOX.
5. Advertise service using the
SAP_START_NW function, followed
by AWAITIOX.
5. Start data transfer (sendto_nw
and/or recvfrom_nw, followed by
AWAITIOX, usually in a loop).
OR
Specify the remote address for the
socket (connect_nw, followed by
AWAITIOX). Then, start data transfer
(send_nw and/or recv_nw, followed
by AWAITIOX, usually in a loop).
6. Start data transfer on the new socket
(recvfrom_nw and/or sendto_nw,
followed by AWAITIOX, usually in a
loop).
OR
Specify the remote address for the
socket (connect_nw, followed by
AWAITIOX). Then, start data transfer
on the socket (recv_nw and/or
send_nw, followed by AWAITIOX,
usually in a loop).
6. Close the socket (CLOSE or
FILE_CLOSE_).
7. Close the socket (CLOSE or
FILE_CLOSE_).