clockUtils  1.1
clockUtils::sockets Namespace Reference

Classes

class  TcpSocket
 class for sockets using tcp More...
 
class  UdpSocket
 class for sockets using udp More...
 

Typedefs

typedef uint32_t IPv4
 

Functions

CLOCK_SOCKETS_API IPv4 resolveHostname (const std::string &hn)
 returns the IP for a given hostname More...
 
CLOCK_SOCKETS_API IPv4 convertIP (const std::string &ip)
 converts an IP in the numbers-and-dots notation into an IPv4 integer More...
 
CLOCK_SOCKETS_API std::string convertIP (const IPv4 &ip)
 converts an IPv4 formatted IP to the numbers-and-dots notation More...
 
template<>
CLOCK_SOCKETS_API TcpSocketTcpSocket::operator<<< std::string > (const std::string &s)
 specialization of stream operator for std::string to reduce overhead through converting to std::string using stringstream More...
 

Variables

const IPv4 NO_IP
 

Function Documentation

§ TcpSocket::operator<<< std::string >()

template<>
CLOCK_SOCKETS_API TcpSocket& clockUtils::sockets::TcpSocket::operator<<< std::string > ( const std::string &  s)

specialization of stream operator for std::string to reduce overhead through converting to std::string using stringstream