IPX/SPX Programming Manual

Programming Using the Socket Interface
HP NonStop IPX/SPX Programming Manual528022-001
3-8
Basic Steps for Programs
3. Accepts the connection on the new socket.
For nowait operations, a program must issue the following sequence of calls to perform
these functions:
Server Programs Started by Waited and Nowait Operations
In the NonStop IPX/SPX socket library, most of the socket function calls used for data
transmission have waited and nowait versions. Client and server programs must create
a socket for each type of operation, either waited or nowait, and then use that socket
only for that type of operation.
The exception to the rule of corresponding waited (wait for the completion of the
function call) and nowait function calls (continue after making function call) is the
accept function call. As already described, the nowait equivalent of accept consists
of the three calls: accept_nw, socket_nw, and accept_nw2. You must complete
each nowait socket call with a call to the AWAITIOX procedure.
The steps vary somewhat depending on the protocol (SPXII or IPX) and on whether
the operations are waited or nowait. The following subsections outline which of these
steps apply to specific cases.
accept_nw
AWAITIOX
socket_nw
AWAITIOX
accept_nw2
AWAITIOX