| 本帖最后由 2191265529 于 2018-7-27 16:31 编辑 |
- WINSOCK_API_LINKAGE SOCKET WSAAPI accept(
- SOCKET s,
- sockaddr *addr,
- int *addrlen
A descriptor that identifies a socket that has been placed in a listening state with the listen function. The connection is actually made with the socket that is returned by accept.
An optional pointer to a buffer that receives the address of the connecting entity, as known to the communications layer. The exact format of the addr parameter is determined by the address family that was established when the socket from the sockaddr structure was created.
An optional pointer to an integer that contains the length of structure pointed to by the addr parameter.