#include <network.h>
Public Member Functions | |
NetworkSource (BufferedTransformation *attachment) | |
unsigned int | GetMaxWaitObjectCount () const |
void | GetWaitObjects (WaitObjectContainer &container, CallStack const &callStack) |
bool | SourceExhausted () const |
void | SetAutoSignalPropagation (int propagation) |
int | GetAutoSignalPropagation () const |
lword | GetMaxBytesPerSecond () const |
void | SetMaxBytesPerSecond (lword v) |
lword | ComputeCurrentTransceiveLimit () |
double | TimeToNextTransceive () |
void | NoteTransceive (lword size) |
NONBLOCKING SOURCE | |
size_t | GeneralPump2 (lword &byteCount, bool blockingOutput=true, unsigned long maxTime=INFINITE_TIME, bool checkDelimiter=false, byte delimiter='\n') |
pump up to maxSize bytes using at most maxTime milliseconds | |
lword | GeneralPump (lword maxSize=LWORD_MAX, unsigned long maxTime=INFINITE_TIME, bool checkDelimiter=false, byte delimiter='\n') |
lword | TimedPump (unsigned long maxTime) |
lword | PumpLine (byte delimiter='\n', lword maxSize=1024) |
size_t | Pump2 (lword &byteCount, bool blocking=true) |
size_t | PumpMessages2 (unsigned int &messageCount, bool blocking=true) |
Protected Member Functions | |
size_t | DoPump (lword &byteCount, bool blockingOutput, unsigned long maxTime, bool checkDelimiter, byte delimiter) |
virtual NetworkReceiver & | AccessReceiver ()=0 |
const NetworkReceiver & | GetReceiver () const |
bool | BlockedBySpeedLimit () const |
Definition at line 165 of file network.h.
size_t NonblockingSource::GeneralPump2 | ( | lword & | byteCount, | |
bool | blockingOutput = true , |
|||
unsigned long | maxTime = INFINITE_TIME , |
|||
bool | checkDelimiter = false , |
|||
byte | delimiter = '\n' | |||
) | [inherited] |
pump up to maxSize bytes using at most maxTime milliseconds
If checkDelimiter is true, pump up to delimiter, which itself is not extracted or pumped.
Definition at line 76 of file network.cpp.
References TimerBase::ElapsedTime(), INFINITE_TIME, TimerBase::StartTimer(), and WaitObjectContainer::Wait().