COSMOS core  1.0.2 (beta)
Comprehensive Open-architecture Solution for Mission Operations Systems

#include <socketlib.h>

Collaboration diagram for SocketOptions:

Public Member Functions

 SocketOptions ()
 
 SocketOptions (uint16_t p)
 
 SocketOptions (string a, uint16_t p)
 
 SocketOptions (string a, uint16_t p, uint16_t r)
 

Public Attributes

NetworkType type = NetworkType::UDP
 
int32_t handle = 0
 
struct sockaddr_in server
 
struct sockaddr_in s_other
 
bool connect = false
 
string address = "127.0.0.1"
 
uint16_t port = 8888
 
int addrlen = sizeof(server)
 
uint16_t role = 0
 
bool blocking = true
 
uint32_t timeout = 100000
 
bool stream = false
 

Constructor & Destructor Documentation

SocketOptions::SocketOptions ( )
inline
196 {}
SocketOptions::SocketOptions ( uint16_t  p)
SocketOptions::SocketOptions ( string  a,
uint16_t  p 
)
SocketOptions::SocketOptions ( string  a,
uint16_t  p,
uint16_t  r 
)

Member Data Documentation

NetworkType SocketOptions::type = NetworkType::UDP
int32_t SocketOptions::handle = 0
struct sockaddr_in SocketOptions::server
struct sockaddr_in SocketOptions::s_other
bool SocketOptions::connect = false
string SocketOptions::address = "127.0.0.1"
uint16_t SocketOptions::port = 8888
int SocketOptions::addrlen = sizeof(server)
uint16_t SocketOptions::role = 0
bool SocketOptions::blocking = true
uint32_t SocketOptions::timeout = 100000
bool SocketOptions::stream = false

The documentation for this struct was generated from the following file: