5 #include <netinet/in.h>
14 Socket(
const std::string &IPAddress,
unsigned int port=0);
17 virtual void initialize(
void);
18 const struct sockaddr_in& getSocketAddress(
void);
19 const std::string& getIPAddress() {
return IPAddress_; }
20 const unsigned int& getPort() {
return port_; }
23 enum{maxSocketSize_ = 65536};
26 struct sockaddr_in socketAddress_;
31 enum{FirstSocketPort=10000,LastSocketPort=15000};
32 std::string IPAddress_;