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::UDPServerSocket Class Reference

A UDP Server socket. More...

#include <udpsocket.h>

Inheritance diagram for VICI::cfi::UDPServerSocket:
VICI::cfi::UDPSocket

Public Member Functions

 UDPServerSocket (int portid)
 Constructor. More...
 
void send (csr message, csr host, int port)
 send message to specified host and port. Used for replies. 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 Server socket.

A UDP socket which accepts incoming packets.

Constructor & Destructor Documentation

UDPServerSocket::UDPServerSocket ( int  portid)

Constructor.

Parameters
portidthe port to listen on.

Member Function Documentation

void UDPServerSocket::send ( csr  message,
csr  host,
int  port 
)

send message to specified host and port. Used for replies.

Parameters
messagethe text to send.
hostthe machine to send to.
portthe port to send to.

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