Syntax
int vm_soc_accept(
    int sock, 
    SOCKADDR* addr, 
    int* addrlen
);
ContentsIndex
PreviousUpNext
vm_soc_accept
Syntax
int vm_soc_accept(
    int sock, 
    SOCKADDR* addr, 
    int* addrlen
);
Description

Accepts a connection on a socket.

Parameters
Parameters 
Description 
int sock 
[IN] The descriptor that identifies a bound socket
SOCKADDR* addr 
[IN|OUT] The socket address structure, to be filled with the peer socket address. 
int* addrlen 
[IN|OUT] The size of the socket address structure. On return, it will contain the actual size of the peer address. 
Return Values
Return Values 
Description 
Non-negative number 
Socket descriptor for accepted socket.
 
VM_SOC_INVALID_SOCKET 
Invalid socket ID.
 
VM_SOC_INVAL 
Socket is not calling soc_listen.
 
VM_SOC_WOULDBLOCK 
Non-blocking.
 
VM_SOC_CONNABORTED 
Server socket cannot receive anymore.
 
VM_SOC_BEARER_FAIL 
Bearer broken.
 
VM_SOC_ERROR 
Unspecified error. 
File

vmsock.h

Group
Created with a commercial version of Doc-O-Matic. In order to make this message disappear you need to register this software. If you have problems registering this software please contact us at support@toolsfactory.com.