#include <NetProtocol.h>
Public Member Functions | |
NetProtocol (JString pname) | |
virtual | ~NetProtocol () |
virtual bool | equals (NetProtocol *protocol) |
virtual Object * | clone () const =0 |
virtual bool | checkBufferForCompatibility (char *buffer, int length)=0 |
virtual bool | initializeConversation (JSocket *socket)=0 |
virtual bool | initializeAsReceiver (JSocket *socket, JString from) |
virtual bool | sendObject (JSocket *socket, Object *obj, bool isReply) |
virtual bool | sendObject (JSocket *socket, Message *msg, bool isReply)=0 |
virtual Message * | receiveObject (JSocket *socket, int timeout)=0 |
double | getSendProgress () |
double | getReceiveProgress () |
Public Attributes | |
JString | name |
int | netTimeout |
NetProtocol * | prev |
NetProtocol * | next |
bool | isLocalCallback |
bool | isRemoteCallback |
int | currentUnsentBufferSize |
int | currentSentBufferSize |
int | currentUnreceivedBufferSize |
int | currentReceivedBufferSize |
Definition at line 44 of file NetProtocol.h.
cmlabs::NetProtocol::NetProtocol | ( | JString | pname | ) |
Definition at line 33 of file NetProtocol.cpp.
cmlabs::NetProtocol::~NetProtocol | ( | ) | [virtual] |
Definition at line 47 of file NetProtocol.cpp.
bool cmlabs::NetProtocol::equals | ( | NetProtocol * | protocol | ) | [virtual] |
Definition at line 56 of file NetProtocol.cpp.
virtual Object* cmlabs::NetProtocol::clone | ( | ) | const [pure virtual] |
Implements cmlabs::Object.
Implemented in cmlabs::NetHTTPProtocol, cmlabs::NetMessageProtocol, cmlabs::NetOriginalMessageProtocol, and cmlabs::NetTelnetProtocol.
bool cmlabs::NetProtocol::checkBufferForCompatibility | ( | char * | buffer, | |
int | length | |||
) | [pure virtual] |
Implemented in cmlabs::NetHTTPProtocol, cmlabs::NetMessageProtocol, cmlabs::NetOriginalMessageProtocol, and cmlabs::NetTelnetProtocol.
Definition at line 60 of file NetProtocol.cpp.
virtual bool cmlabs::NetProtocol::initializeConversation | ( | JSocket * | socket | ) | [pure virtual] |
Definition at line 64 of file NetProtocol.cpp.
bool cmlabs::NetProtocol::sendObject | ( | JSocket * | socket, | |
Message * | msg, | |||
bool | isReply | |||
) | [pure virtual] |
Implemented in cmlabs::NetHTTPProtocol, cmlabs::NetMessageProtocol, cmlabs::NetOriginalMessageProtocol, and cmlabs::NetTelnetProtocol.
Definition at line 72 of file NetProtocol.cpp.
Implemented in cmlabs::NetHTTPProtocol, cmlabs::NetMessageProtocol, cmlabs::NetOriginalMessageProtocol, and cmlabs::NetTelnetProtocol.
Definition at line 76 of file NetProtocol.cpp.
double cmlabs::NetProtocol::getSendProgress | ( | ) |
Definition at line 92 of file NetProtocol.cpp.
double cmlabs::NetProtocol::getReceiveProgress | ( | ) |
Definition at line 81 of file NetProtocol.cpp.
Definition at line 50 of file NetProtocol.h.
Definition at line 51 of file NetProtocol.h.
Definition at line 53 of file NetProtocol.h.
Definition at line 54 of file NetProtocol.h.
Definition at line 56 of file NetProtocol.h.
Definition at line 57 of file NetProtocol.h.
Definition at line 70 of file NetProtocol.h.
Definition at line 71 of file NetProtocol.h.
Definition at line 74 of file NetProtocol.h.
Definition at line 75 of file NetProtocol.h.