20 #ifndef __PRACTICALSOCKET_INCLUDED__
21 #define __PRACTICALSOCKET_INCLUDED__
46 SocketException(
const string &message,
bool inclSysMsg =
false)
throw();
57 const char *what()
const throw();
103 void setLocalAddressAndPort(
const string &localAddress,
127 static unsigned short resolveService(
const string &service,
128 const string &protocol =
"tcp");
133 void operator=(
const Socket &sock);
153 void connect(
const string &foreignAddress,
unsigned short foreignPort)
212 TCPSocket(
const string &foreignAddress,
unsigned short foreignPort)
285 UDPSocket(
const string &localAddress,
unsigned short localPort)
305 void sendTo(
const void *buffer,
int bufferLen,
const string &foreignAddress,
318 int recvFrom(
void *buffer,
int bufferLen,
string &sourceAddress,
326 void setMulticastTTL(
unsigned char multicastTTL)
throw(
SocketException);
373 int select_t(
int sec,
int usec);
379 void setNonBlocking(
bool nonblock);
Definition: PracticalSocket.h:264
Definition: PracticalSocket.h:224
Definition: PracticalSocket.h:38
Definition: PracticalSocket.h:66
Definition: PracticalSocket.h:144
Definition: PracticalSocket.h:197