![]() |
VR-Forces Developer's Guide
|
A remote UDP client that the UDP server communicates with.

Public Member Functions | |
| DtUdpMessageClient (DtDe &de, DtInetSocket *socket, size_t maxPacketSize) | |
| virtual | ~DtUdpMessageClient () |
| virtual void | deliver (DtMessage &msg) |
| virtual void | sendAndFlush () |
| virtual void | getServerMessages (MessageList &) |
| DtInetSocket * | socket () const |
| virtual void | readData () |
| bool | isOk () const |
| size_t | maxPacketSize () const |
Static Public Member Functions | |
| static std::string | errorString (int code) |
Protected Member Functions | |
| int | lastError () |
Protected Attributes | |
| DtDe & | myDe |
| DtInetSocket * | mySocket |
| bool | myOkFlag |
| double | mySendTimeout |
| DtMessageStream | myInputStream |
| DtMessageStream | myOutputStream |
| size_t | myMaxPacketSize |
Additional Inherited Members |
| makVrv::DtUdpMessageClient::DtUdpMessageClient | ( | DtDe & | de, |
| DtInetSocket * | socket, | ||
| size_t | maxPacketSize | ||
| ) |
Construct a client from an existing socket. The message client takes ownership of the socket (and deletes it)
|
virtual |
DTOR.
|
virtual |
Deliver function.
Implements makVrv::DtMessageClient.
|
virtual |
Send and flush the internal buffer. This function is called by deliver.
|
virtual |
Get any server messages. getServerMessages will call DtDe::quit() if a corrupted input stream is detected (as there is no good way to recover from that and you're better off exiting so a reconnect can be done).
Implements makVrv::DtMessageClient.
| DtInetSocket* makVrv::DtUdpMessageClient::socket | ( | ) | const |
Get the remote client socket.
|
virtual |
Read data from the server.
| bool makVrv::DtUdpMessageClient::isOk | ( | ) | const |
Check to see if the client is ok.
| size_t makVrv::DtUdpMessageClient::maxPacketSize | ( | ) | const |
|
static |
Get a string description of the error code.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |