class Buffered_DatagramConnection

Bases: Socket_TCP

there are 3 states 1. Socket not even assigned,,,, 2. Socket Assigned and trying to get a active connect open 3. Socket is open and writable.. ( Fully powered up )…

Inheritance diagram

Inheritance diagram of Buffered_DatagramConnection

void AddAddress(Socket_Address &inadr)

must be called to set value to the server

std::size_t AddressQueueSize(void)

address queue stuff

void ClearAddresses(void)
bool DoConnect(void)

all the real state magic is in here

bool Flush(void)

Flush all writes.

bool GetMessage(Datagram &val)

Reads a message. Returns false on failure.

bool IsConnected(void)

all the real state magic is in here

void Reset(void)


bool SendMessage(Datagram const &msg)

the reason thsi all exists

send the message

void WaitForNetworkReadEvent(PN_stdfloat MaxTime)
explicit Buffered_DatagramConnection(int rbufsize, int wbufsize, int write_flush_point)
static TypeHandle get_class_type(void)