nidas v1.2.3
Public Member Functions | Public Attributes | List of all members
nidas::util::McSocketData Struct Reference

#include <McSocket.h>

Public Member Functions

 McSocketData ()
 Constructor.
 

Public Attributes

int magic
 Magic value that should be found at the beginning of all received datagrams.
 
int _requestType
 An integer which identifies the type of the request.
 
unsigned short _listenPort
 Socket port that the remote host is listening on.
 
short _socketType
 Either SOCK_STREAM=1, or SOCK_DGRAM=2.
 

Constructor & Destructor Documentation

◆ McSocketData()

nidas::util::McSocketData::McSocketData ( )
inline

Constructor.

Member Data Documentation

◆ _listenPort

unsigned short nidas::util::McSocketData::_listenPort

Socket port that the remote host is listening on.

Stored in "network", big-endian order.

◆ _requestType

int nidas::util::McSocketData::_requestType

An integer which identifies the type of the request.

A McSocketListener on the server side must be doing an accept for a McSocket with the same requestType value. Stored in "network", big-endian order.

◆ _socketType

short nidas::util::McSocketData::_socketType

Either SOCK_STREAM=1, or SOCK_DGRAM=2.

◆ magic

int nidas::util::McSocketData::magic

Magic value that should be found at the beginning of all received datagrams.


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