uicore::UDPSocket Class Referenceabstract

UDP/IP socket class. More...

#include <udp_socket.h>

+ Inheritance diagram for uicore::UDPSocket:

Public Member Functions

virtual void bind (const SocketName &endpoint)=0
 Bind socket to end point. More...
 
virtual void close ()=0
 Close connection. More...
 
virtual int read (void *data, int size, SocketName &endpoint)=0
 Read receved UDP packet. More...
 
virtual void send (const void *data, int size, const SocketName &endpoint)=0
 Send UDP packet to end point. More...
 

Static Public Member Functions

static std::shared_ptr< UDPSocketcreate ()
 Create socket object. More...
 

Additional Inherited Members

- Protected Member Functions inherited from uicore::NetworkEvent
virtual SocketHandle * socket_handle ()=0
 

Detailed Description

UDP/IP socket class.

Member Function Documentation

virtual void uicore::UDPSocket::bind ( const SocketName endpoint)
pure virtual

Bind socket to end point.

virtual void uicore::UDPSocket::close ( )
pure virtual

Close connection.

static std::shared_ptr<UDPSocket> uicore::UDPSocket::create ( )
static

Create socket object.

virtual int uicore::UDPSocket::read ( void *  data,
int  size,
SocketName endpoint 
)
pure virtual

Read receved UDP packet.

Returns
Bytes read or 0 if no packet was available
virtual void uicore::UDPSocket::send ( const void *  data,
int  size,
const SocketName endpoint 
)
pure virtual

Send UDP packet to end point.


The documentation for this class was generated from the following file: