1 | Listen exit information | Input | Char(*) |
2 | Return indicator | Output | Char(1) |
A user-defined exit program enables a custom program to allow or deny a socket to listen for connections based on a program's restrictions. The sockets listen() API will allow or deny a socket to listen for incoming connections based on the return indicator from the exit program.
None.
Used by the user-written program to help determine if a socket should be allowed to listen for incoming connections. Refer to Format of Listen Exit Information for details about this parameter.
Indicates whether the socked should be allowed to listen for incoming connections.
'0' | Allow the socket to listen for incoming connections. |
'1' | Deny the socket the ability to listen for incoming connections and force listen() to fail with errno set to EPERM. |
'9' | Allow the socket the ability to listen for incoming connections and indicate this user exit program should not be called again for this process. |
Note: Any value other than '0' or '9' indicates that the socket should be denied the ability to listen for incoming connections.
Offset | Type | Field | |
---|---|---|---|
Dec | Hex | ||
0 | 0 | Binary(4) | Backlog |
4 | 4 | Binary(4) | Local address length |
8 | 8 | Char(28) | Local address |
Backlog. The maximum number of connection requests that can be queued before the system starts rejecting incoming requests for the socket.
Local address. The address the listening socket is bound to. This field is large enough to hold either a sockaddr_in or sockaddr_in6 structure. In order to determine the format of this field refer to the Local address length field.
Local address length. The length of the address structure the listening socket is bound to.
See the following for more information: