gtpi1m56System Installation Support Reference

TCP/IP Native Stack Support Accept Connection

The TCP/IP native stack support accept connection user exit, UACC, allows you to verify a remote client connection request.

UACC is called when an accept or activate_on_accept function call is made for a socket that uses TCP/IP native stack support.

UACC is called in segments C511 and CTSG.

Input

userexit_s
The file descriptor of a new socket associated with the client connection request.

userexit_addr
A pointer to the socket address buffer that contains the client address information.

userexit_addrlen
The size of the socket address buffer.

Programming Considerations

Return Values

UACC returns one of the following values:

-1
Reject the connection request.

userexit_s
Accept the connection request.