Sirikata
|
#include <TCPSetCallbacks.hpp>
Public Member Functions | |
TCPSetCallbacks (MultiplexedSocket *ms, TCPStream *strm) | |
virtual void | operator() (const Stream::ConnectionCallback &connectionCallback, const Stream::ReceivedCallback &bytesReceivedCallback, const Stream::ReadySendCallback &readySendCallback) |
Function to be called from within a SubstreamCallback to set the callback functions of a newly cloned or received stream. | |
Public Attributes | |
TCPStream::Callbacks * | mCallbacks |
TCPStream * | mStream |
MultiplexedSocket * | mMultiSocket |
Sirikata::Network::TCPSetCallbacks::TCPSetCallbacks | ( | MultiplexedSocket * | ms, |
TCPStream * | strm | ||
) | [inline] |
virtual void Sirikata::Network::TCPSetCallbacks::operator() | ( | const Stream::ConnectionCallback & | connectionCallback, |
const Stream::ReceivedCallback & | receivedCallback, | ||
const Stream::ReadySendCallback & | readySendCallback | ||
) | [inline, virtual] |
Function to be called from within a SubstreamCallback to set the callback functions of a newly cloned or received stream.
This allows bytes to be immediately sent off
Implements Sirikata::Network::Stream::SetCallbacks.
References Sirikata::Network::MultiplexedSocket::addCallbacks(), Sirikata::Network::TCPStream::getID(), mCallbacks, mMultiSocket, Sirikata::Network::TCPStream::mSendStatus, and mStream.
Referenced by operator()().