otsdaq  v2_05_02_indev
ots::NetworkDevice Class Reference

Public Member Functions

 NetworkDevice (std::string IPAddress, unsigned int port)
 
int initSocket (std::string socketPort="")
 
int initSocket (unsigned int socketPort)
 
int ping (int socketDescriptor)
 
int send (int socketDescriptor, const std::string &msg)
 
int receive (int socketDescriptor, std::string &msg)
 
int listen (int socketDescriptor, std::string &msg)
 
std::string getFullIPAddress (std::string partialIpAddress)
 
std::string getInterfaceName (std::string ipAddress)
 
std::string getMacAddress (std::string interfaceName)
 

Protected Types

enum  { maxSocketSize = 65536 }
 

Protected Attributes

struct sockaddr_in deviceAddress_
 
std::map< int, int > openSockets_
 

Detailed Description

Definition at line 12 of file NetworkDevice.h.


The documentation for this class was generated from the following files: