sources/network/udpsocket.h

changeset 8
8b697d30c49f
parent 6
c709bb1a08e4
child 9
e7a09ceb4505
equal deleted inserted replaced
7:01e4e9ae323a 8:8b697d30c49f
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;

mercurial