Go to the documentation of this file.
20 #ifndef __PRACTICALSOCKET_INCLUDED__
21 #define __PRACTICALSOCKET_INCLUDED__
36 SocketException(
const string &message,
bool inclSysMsg =
false)
throw();
47 const char *what()
const throw();
93 void setLocalAddressAndPort(
const string &localAddress,
117 static unsigned short resolveService(
const string &service,
118 const string &protocol =
"tcp");
123 void operator=(
const Socket &sock);
144 void connect(
const string &foreignAddress,
unsigned short foreignPort)
204 TCPSocket(
const string &foreignAddress,
unsigned short foreignPort)
277 UDPSocket(
const string &localAddress,
unsigned short localPort)
297 void sendTo(
const void *buffer,
int bufferLen,
const string &foreignAddress,
310 int recvFrom(
void *buffer,
int bufferLen,
string &sourceAddress,
318 void setMulticastTTL(
unsigned char multicastTTL)
throw(
SocketException);