ACCEPT
The ACCEPT call is used by a server to accept a connection request from a client.
| SOCKET ACCEPT,(socket,from,fromlen) |
- socket
- is the address of a fullword integer socket descriptor.
- from
- is the address of a string to receive information about the connecting client (remote address and port). The format is defined by the SOCKADDR DSECT generated by the SOCKET DSECT macro call.
- fromlen
- is the address of a fullword containing the length of the from parameter. The fromlen value must be 16.
- rc
- (Output) is a value returned when the socket call completes successfully, which contains the socket number that was allocated.