Syntax
int vm_soc_socket(
    int family, 
    int type, 
    int protocol
);
ContentsIndex
PreviousUpNext
vm_soc_socket
Syntax
int vm_soc_socket(
    int family, 
    int type, 
    int protocol
);
Description

Creates a socket.

Parameters
Parameters 
Description 
int family 
[IN] Specifies the address family, PF_INET or PF_INET6
int type 
[IN] Specifies the type for the new socket. SOCK_STREAM = connection based type. SOCK_DGRAM = datagram connectionless type. 
int protocol 
[IN] Particular protocol to be used with the socket that is specific to the indicated address family. 
Return Values
Return Values 
Description 
Non-negative number 
Socket ID for the newly created socket.
 
VM_SOC_INVAL 
Wrong parameters, domain, type, or protocol.
 
VM_SOC_LIMIT_RESOURCE 
No socket available.
 
VM_SOC_BEARER_FAIL 
Bearer broken. 
File

vmsock.h

Notes

It is advised to use BSD socket API all in one sub-thread.

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.