50 UDPSocket(); |
50 UDPSocket(); |
51 virtual ~UDPSocket(); |
51 virtual ~UDPSocket(); |
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 Vector<unsigned char>& 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 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: |