4 #include <netinet/in.h>
13 Socket(
const std::string& IPAddress,
unsigned int port = 0);
16 virtual void initialize(
unsigned int socketReceiveBufferSize = defaultSocketReceiveSize_);
17 const struct sockaddr_in& getSocketAddress(
void);
18 const std::string& getIPAddress() {
return IPAddress_; }
24 maxSocketSize_ = 65536,
25 defaultSocketReceiveSize_ = 0x10000
29 struct sockaddr_in socketAddress_;
36 FirstSocketPort = 10000,
37 LastSocketPort = 15000
39 std::string IPAddress_;
40 unsigned int requestedPort_;