COSMOS core  1.0.2 (beta)
Comprehensive Open-architecture Solution for Mission Operations Systems
Socket library constants
Collaboration diagram for Socket library constants:

Macros

#define SOCKET_BLOCKING   true
 Blocking Agent. More...
 
#define SOCKET_NONBLOCKING   false
 Non-blocking Agent. More...
 
#define SOCKET_TALK   0
 Talk followed by optional listen (sendto address) More...
 
#define SOCKET_LISTEN   1
 Listen followed by optional talk (recvfrom INADDRANY) More...
 
#define SOCKET_COMMUNICATE   2
 Communicate socket (sendto followed by recvfrom) More...
 
#define SOCKET_JABBER   3
 Talk over multiple interfaces. More...
 
#define SOCKET_RCVTIMEO   100000
 Default SOCKET RCVTIMEO (100 msec) More...
 
#define SOCKET_IP_BYTE_VERSION   0
 IP Version Byte. More...
 
#define SOCKET_IP_BYTE_LEN_LOW   3
 
#define SOCKET_IP_BYTE_LEN_HIGH   2
 
#define SOCKET_IP_BYTE_PROTOCOL   9
 
#define SOCKET_IP_BYTE_SRC_ADDR   12
 
#define SOCKET_IP_BYTE_DEST_ADDR   16
 
#define SOCKET_IP_BYTE_UDP_LEN   24
 
#define SOCKET_IP_BYTE_UDP_CS   26
 
#define SOCKET_IP_PROTOCOL_UDP   17
 
#define SOCKET_BUFFER_LENGTH   512
 

Enumerations

enum  NetworkType : std::uint16_t {
  NetworkType::MULTICAST =0, NetworkType::BROADCAST =2, NetworkType::UDP =5, NetworkType::TCP =3,
  NetworkType::CSP =4
}
 

Detailed Description

Macro Definition Documentation

#define SOCKET_BLOCKING   true

Blocking Agent.

#define SOCKET_NONBLOCKING   false

Non-blocking Agent.

#define SOCKET_TALK   0

Talk followed by optional listen (sendto address)

#define SOCKET_LISTEN   1

Listen followed by optional talk (recvfrom INADDRANY)

#define SOCKET_COMMUNICATE   2

Communicate socket (sendto followed by recvfrom)

#define SOCKET_JABBER   3

Talk over multiple interfaces.

#define SOCKET_RCVTIMEO   100000

Default SOCKET RCVTIMEO (100 msec)

#define SOCKET_IP_BYTE_VERSION   0

IP Version Byte.

#define SOCKET_IP_BYTE_LEN_LOW   3
#define SOCKET_IP_BYTE_LEN_HIGH   2
#define SOCKET_IP_BYTE_PROTOCOL   9
#define SOCKET_IP_BYTE_SRC_ADDR   12
#define SOCKET_IP_BYTE_DEST_ADDR   16
#define SOCKET_IP_BYTE_UDP_LEN   24
#define SOCKET_IP_BYTE_UDP_CS   26
#define SOCKET_IP_PROTOCOL_UDP   17
#define SOCKET_BUFFER_LENGTH   512

Enumeration Type Documentation

enum NetworkType : std::uint16_t
strong
Enumerator
MULTICAST 

Agent socket using Multicast UDP.

BROADCAST 

Agent socket using Broadcast UDP.

UDP 

Agent socket using Unicast UDP.

TCP 

Agent socket using Unicast TCP.

CSP 

Agent socket using Broadcast CSP.

63  : std::uint16_t
64  {
66  MULTICAST=0,
68  BROADCAST=2, // was previously NetworkType::BROADCAST
70  UDP=5, // was previously NetworkType::UDP
72  TCP=3,
74  CSP=4
75  };
Agent socket using Unicast UDP.
Agent socket using Unicast TCP.
Agent socket using Broadcast CSP.
Agent socket using Broadcast UDP.
Agent socket using Multicast UDP.