52 |
52 |
53 bool bind (unsigned short port); |
53 bool bind (unsigned short port); |
54 bool read (Datagram& datagram); |
54 bool read (Datagram& datagram); |
55 bool send (const IPAddress& address, const ByteArray& data); |
55 bool send (const IPAddress& address, const ByteArray& data); |
56 bool set_blocking (bool a); |
56 bool set_blocking (bool a); |
57 const String& error_string() const { return m_error; } |
57 const std::string& error_string() const { return m_error; } |
58 int file_descriptor() const { return m_socket; } |
58 int file_descriptor() const { return m_socket; } |
59 |
59 |
60 private: |
60 private: |
61 static char HuffmanBuffer[131072]; |
61 static char HuffmanBuffer[131072]; |
62 |
62 |
63 IPAddress m_addr; |
63 IPAddress m_addr; |
64 String m_error; |
64 std::string m_error; |
65 int m_socket; |
65 int m_socket; |
66 }; |
66 }; |
67 |
67 |
68 END_ZFC_NAMESPACE |
68 END_ZFC_NAMESPACE |