Go to the documentation of this file.
18 #ifndef __LIB_LIBNET_NETWORKCLIENT_H
19 #define __LIB_LIBNET_NETWORKCLIENT_H
177 const Size msecTimeout);
String m_deviceName
Network device name.
Describes a single packet.
SocketAction
Socket actions.
Result initialize()
Perform initialization.
Result createSocket(const SocketType type, int *socket)
Create new socket.
Result close(const int sock)
Close the socket.
struct NetworkClient::SocketInfo SocketInfo
Socket information.
User Datagram Protocol (UDP)
unsigned long Address
A memory address.
Result connectSocket(const int sock, const IPV4::Address addr, const u16 port=0)
Connect socket to address/port.
virtual ~NetworkClient()
Destructor.
unsigned short u16
Unsigned 16-bit number.
unsigned int Size
Any sane size indicator cannot go negative.
Networking Client implementation.
Result bindSocket(const int sock, const IPV4::Address addr=0, const u16 port=0)
Bind socket to address/port.
NetworkClient(const char *networkDevice)
Constructor.
Result writeSocketInfo(const int sock, const IPV4::Address addr, const u16 port, const SocketAction action)
Set socket to new state.
Result waitSocket(const NetworkClient::SocketType type, const int sock, const Size msecTimeout)
Wait until the given socket has data to receive.