Syntax
int vm_soc_bind(
    int sock, 
    const SOCKADDR* addr, 
    int addrlen, 
    int type
);
ContentsIndex
PreviousUpNext
vm_soc_bind
Syntax
int vm_soc_bind(
    int sock, 
    const SOCKADDR* addr, 
    int addrlen, 
    int type
);
Description

Binds a local address with a socket.

Parameters
Parameters 
Description 
int sock 
[IN] The descriptor that identifies an unbound socket
const SOCKADDR* addr 
[IN] The local address to be bound to the socket
int addrlen 
[IN] The size of the address structure, in bytes. 
int type 
[IN] Specifies the type for the new socket. SOCK_STREAM = connection based type. SOCK_DGRAM = datagram connectionless type. 
Return Values
Return Values 
Description 
VM_SOC_SUCCESS 
Success.
 
VM_SOC_INVALID_SOCKET 
Invalid socket ID.
 
VM_SOC_BEARER_FAIL 
Bearer broken.
 
VM_SOC_ERROR 
Unspecified error.
 
VM_SOC_ADDRINUSE 
The local port has been bound with other socket
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.