1 | Accept exit information | Input | Char(*) |
2 | Return indicator | Output | Char(1) |
A user-defined exit program enables a custom program to allow or deny accepted connections based on a program's restrictions. The sockets accept() API will permit or reject an incoming connection from being accepted based on the return indicator from the exit program.
None.
Used by the user-written program to help determine if the incoming connection should be accepted. Refer to Format of Accept Exit Information for details about this parameter.
Indicates whether the connection should be accepted or rejected.
'0' | Allow the incoming connection to be accepted. |
'1' | Reject the incoming connection. |
'9' | Allow the incoming connection to be accepted 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 incoming connection should be rejected.
Offset | Type | Field | |
---|---|---|---|
Dec | Hex | ||
0 | 0 | Binary(4) | Local bound address length |
4 | 4 | Char(28) | Local bound address |
32 | 20 | Binary(4) | Local incoming address length |
36 | 24 | Char(28) | Local incoming address |
64 | 40 | Binary(4) | Remote address length |
68 | 44 | Char(28) | Remote address |
Local bound address. The address the accepting 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 bound address length field.
Local bound address length. The length of the address structure the accepting socket is bound to.
Local incoming address. The address the connection came in on. 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 incoming address length field.
Local incoming address length. The length of the address structure the connection came in on.
Remote address. The address from which the incoming connection to be accepted came. 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 Remote address length field.
Remote address length. The length of the address structure from which the incoming connection to be accepted came.
See the following for more information: