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

#include <McSocket.h>

Public Member Functions

 McSocketData ()
 Constructor. More...
 

Public Attributes

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

Constructor & Destructor Documentation

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

Constructor.

Member Data Documentation

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

Socket port that the remote host is listening on.

Stored in "network", big-endian order.

Referenced by nidas::util::McSocketDatagram::getRequesterListenPort(), and nidas::util::McSocketDatagram::setRequesterListenPort().

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.

Referenced by nidas::util::McSocketDatagram::getRequestType(), and nidas::util::McSocketDatagram::setRequestType().

short nidas::util::McSocketData::_socketType

Either SOCK_STREAM=1, or SOCK_DGRAM=2.

Referenced by nidas::util::McSocketDatagram::getSocketType(), and nidas::util::McSocketDatagram::setSocketType().

int nidas::util::McSocketData::magic

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

Referenced by nidas::util::McSocketDatagram::getMagic(), and nidas::util::McSocketDatagram::setMagic().


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