19 UDPSocket(); |
19 UDPSocket(); |
20 virtual ~UDPSocket(); |
20 virtual ~UDPSocket(); |
21 |
21 |
22 METHOD bind (unsigned short port) -> bool; |
22 METHOD bind (unsigned short port) -> bool; |
23 METHOD read (Datagram& datagram) -> bool; |
23 METHOD read (Datagram& datagram) -> bool; |
24 METHOD send (const Bytestream& data, const IPAddress& addr) -> bool; |
24 METHOD send (const IPAddress& address, const Bytestream& data) -> bool; |
25 METHOD set_blocking (bool a) -> bool; |
25 METHOD set_blocking (bool a) -> bool; |
26 |
26 |
27 private: |
27 private: |
28 IPAddress m_addr; |
28 IPAddress m_addr; |
29 String m_error; |
29 String m_error; |