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