cmlabs::NetProtocol Class Reference

#include <NetProtocol.h>

Inheritance diagram for cmlabs::NetProtocol:

Inheritance graph
[legend]
Collaboration diagram for cmlabs::NetProtocol:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 NetProtocol (JString pname)
virtual ~NetProtocol ()
virtual bool equals (NetProtocol *protocol)
virtual Objectclone () 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 MessagereceiveObject (JSocket *socket, int timeout)=0
double getSendProgress ()
double getReceiveProgress ()

Public Attributes

JString name
int netTimeout
NetProtocolprev
NetProtocolnext
bool isLocalCallback
bool isRemoteCallback
int currentUnsentBufferSize
int currentSentBufferSize
int currentUnreceivedBufferSize
int currentReceivedBufferSize


Detailed Description

Definition at line 44 of file NetProtocol.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

bool cmlabs::NetProtocol::equals ( NetProtocol protocol  )  [virtual]

Definition at line 56 of file NetProtocol.cpp.

virtual Object* cmlabs::NetProtocol::clone (  )  const [pure virtual]

bool cmlabs::NetProtocol::checkBufferForCompatibility ( char *  buffer,
int  length 
) [pure virtual]

virtual bool cmlabs::NetProtocol::initializeConversation ( JSocket socket  )  [pure virtual]

bool cmlabs::NetProtocol::initializeAsReceiver ( JSocket socket,
JString  from 
) [virtual]

Reimplemented in cmlabs::NetMessageProtocol.

Definition at line 52 of file NetProtocol.cpp.

bool cmlabs::NetProtocol::sendObject ( JSocket socket,
Object obj,
bool  isReply 
) [virtual]

Definition at line 64 of file NetProtocol.cpp.

bool cmlabs::NetProtocol::sendObject ( JSocket socket,
Message msg,
bool  isReply 
) [pure virtual]

Message * cmlabs::NetProtocol::receiveObject ( JSocket socket,
int  timeout 
) [pure virtual]

double cmlabs::NetProtocol::getSendProgress (  ) 

Definition at line 92 of file NetProtocol.cpp.

double cmlabs::NetProtocol::getReceiveProgress (  ) 

Definition at line 81 of file NetProtocol.cpp.


Member Data Documentation

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.


The documentation for this class was generated from the following files:

Generated on Tue Jul 7 16:23:28 2009 for CoreLibrary by  doxygen 1.5.6