VICI  0.11.815
Visual Chart Interpreter
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Public Member Functions | List of all members
VICI::cfi::UDPClientSocket Class Reference

A UDP client socket. More...

#include <sos/udpsocket.h>

Inheritance diagram for VICI::cfi::UDPClientSocket:
VICI::cfi::UDPSocket

Public Member Functions

 UDPClientSocket (csr host, int portid)
 Constructor. More...
 
- Public Member Functions inherited from VICI::cfi::UDPSocket
virtual ~UDPSocket ()
 destructor
 
int fd ()
 get the file descriptor for the socket
 
void send (csr message)
 send a message via the socket's file descriptor More...
 
void recv (std::string &message, std::string &host, int &port)
 wait for the next incoming message More...
 

Additional Inherited Members

- Static Public Attributes inherited from VICI::cfi::UDPSocket
static const int BUFFER_SIZE = 16000
 
- Protected Member Functions inherited from VICI::cfi::UDPSocket
 UDPSocket ()
 constructor
 
- Protected Attributes inherited from VICI::cfi::UDPSocket
struct sockaddr_in addr
 internal address structure
 
unsigned int addr_len
 size of address structure
 
int sd
 file descriptor
 

Detailed Description

A UDP client socket.

A UDP socket which send messages to a specified server.

Constructor & Destructor Documentation

UDPClientSocket::UDPClientSocket ( csr  host,
int  portid 
)

Constructor.

Parameters
hostthe name of the server to send to
portidthe port for the listening server

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