sources/network/udpsocket.h

changeset 183
9b6a0daedfc0
parent 158
de7574d292ad
child 184
afd63357a03d
equal deleted inserted replaced
182:20ca0a6be175 183:9b6a0daedfc0
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

mercurial