![]() |
VR-Forces 4.7 Class Documentation
|
A remote UDP client that the UDP server communicates with. More...

Public Member Functions | |
| DtUdpMessageClient (DtDe &de, DtInetSocket *socket, size_t maxPacketSize) | |
| Construct a client from an existing socket. | |
| virtual | ~DtUdpMessageClient () |
| DTOR. | |
| virtual void | deliver (DtMessage &msg) |
| Deliver function. | |
| virtual void | sendAndFlush () |
| Send and flush the internal buffer. | |
| virtual void | getServerMessages (MessageList &) |
| Get any server messages. | |
| DtInetSocket * | socket () const |
| Get the remote client socket. | |
| virtual void | readData () |
| Read data from the server. | |
| bool | isOk () const |
| Check to see if the client is ok. | |
| size_t | maxPacketSize () const |
Static Public Member Functions | |
| static std::string | errorString (int code) |
| Get a string description of the error 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 |
A remote UDP client that the UDP server communicates with.
| 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 |