|
HDK
|
#include <UT_NetMessage.h>
Classes | |
| class | AutoNetworkTimer |
Public Member Functions | |
| UT_NetMessagePipe (const UT_StringHolder &trackeraddr, int trackerport, int peer, int npeer, const UT_StringHolder &jobname) | |
| ~UT_NetMessagePipe () | |
| bool | openPipes (int timeoutms=100) |
| Prepares the pipes, returns true if successful. More... | |
| bool | closePipes (int timeoutms=100) |
| Shuts down the pipes, returns true if successful. More... | |
| UT_NetMessage * | readPipe (int peer) |
| UT_NetMessage * | writePipe (int peer) |
| bool | transferData (int timeoutms=100) |
| void | setCompressionThreshold (exint threshold_bytes) |
| exint | compressionThreshold () const |
Protected Member Functions | |
| bool | pumpData (int timeoutms) |
| Returns true until all the messages have been flushed. More... | |
| void | startNetworkTimer () |
| void | stopNetworkTimer () |
Protected Attributes | |
| UT_StringHolder | myTrackerAddress |
| UT_StringHolder | myJobName |
| int | myTrackerPort |
| int | myNPeer |
| int | myPeer |
| UT_NetSocketPtr | myToSelf |
| UT_NetMessagePump | myPump |
| UT_ValArray< UT_NetMessage * > | myAnnounce |
| UT_ValArray< UT_NetMessage * > | myReadPipes |
| UT_ValArray< UT_NetMessage * > | myWritePipes |
| exint | myCompressionThreshold |
| Number of bytes to start compressing at. More... | |
Friends | |
| class | AutoNetworkTimer |
Definition at line 561 of file UT_NetMessage.h.
| UT_NetMessagePipe::UT_NetMessagePipe | ( | const UT_StringHolder & | trackeraddr, |
| int | trackerport, | ||
| int | peer, | ||
| int | npeer, | ||
| const UT_StringHolder & | jobname | ||
| ) |
| UT_NetMessagePipe::~UT_NetMessagePipe | ( | ) |
| bool UT_NetMessagePipe::closePipes | ( | int | timeoutms = 100 | ) |
Shuts down the pipes, returns true if successful.
|
inline |
Definition at line 600 of file UT_NetMessage.h.
| bool UT_NetMessagePipe::openPipes | ( | int | timeoutms = 100 | ) |
Prepares the pipes, returns true if successful.
|
protected |
Returns true until all the messages have been flushed.
|
inline |
Run resetLength on the read pipes to setup the desired amount to read. Likewise, resetLength the write pipes & fill in the data to write.
Definition at line 591 of file UT_NetMessage.h.
Definition at line 599 of file UT_NetMessage.h.
|
protected |
|
protected |
| bool UT_NetMessagePipe::transferData | ( | int | timeoutms = 100 | ) |
Flushes all write pipes, fills all read pipes. Afterwards the readPipes will have their data filled in. Returns true if not errored or aborted.
|
inline |
Definition at line 592 of file UT_NetMessage.h.
|
friend |
Definition at line 622 of file UT_NetMessage.h.
|
protected |
Definition at line 615 of file UT_NetMessage.h.
|
protected |
Number of bytes to start compressing at.
Definition at line 620 of file UT_NetMessage.h.
|
protected |
Definition at line 610 of file UT_NetMessage.h.
|
protected |
Definition at line 612 of file UT_NetMessage.h.
|
protected |
Definition at line 612 of file UT_NetMessage.h.
|
protected |
Definition at line 614 of file UT_NetMessage.h.
|
protected |
Definition at line 616 of file UT_NetMessage.h.
|
protected |
Definition at line 613 of file UT_NetMessage.h.
|
protected |
Definition at line 609 of file UT_NetMessage.h.
|
protected |
Definition at line 611 of file UT_NetMessage.h.
|
protected |
Definition at line 617 of file UT_NetMessage.h.