otsdaq  v1_01_03
 All Classes Namespaces Functions
Public Member Functions | Protected Types | Protected Attributes | List of all members
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 13 of file NetworkDevice.h.


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