Macros | Enumerations
socket_spec.h File Reference

Socket specification. More...

Macros

#define VTM_SOCK_TYPE_UNSPEC   0
 
#define VTM_SOCK_TYPE_STREAM   1
 
#define VTM_SOCK_TYPE_DGRAM   2
 
#define VTM_SOCK_TYPE_TCP   VTM_SOCK_TYPE_STREAM
 
#define VTM_SOCK_TYPE_UDP   VTM_SOCK_TYPE_DGRAM
 

Enumerations

enum  vtm_socket_family { VTM_SOCK_FAM_IN4, VTM_SOCK_FAM_IN6 }
 

Macro Definition Documentation

#define VTM_SOCK_TYPE_UNSPEC   0

unspecified socket type

#define VTM_SOCK_TYPE_STREAM   1

stream type, for example TCP

#define VTM_SOCK_TYPE_DGRAM   2

datagram type, for example UDP

#define VTM_SOCK_TYPE_TCP   VTM_SOCK_TYPE_STREAM

TCP socket

#define VTM_SOCK_TYPE_UDP   VTM_SOCK_TYPE_DGRAM

UDP socket

Enumeration Type Documentation

Enumerator
VTM_SOCK_FAM_IN4 

IPv4

VTM_SOCK_FAM_IN6 

IPv6