TCP_Socket Class Reference

#include <TCP_Socket.h>

Inheritance diagram for TCP_Socket:

Channel List of all members.

Public Member Functions

 TCP_Socket ()
 TCP_Socket (unsigned int)
 TCP_Socket (unsigned int other_Port, char *other_InetAddr)
 ~TCP_Socket ()
char * addToProgram (void)
virtual int setUpConnection (void)
int setNextAddress (const ChannelAddress &otherChannelAddress)
virtual ChannelAddressgetLastSendersAddress (void)
int sendObj (int commitTag, MovableObject &theObject, ChannelAddress *theAddress=0)
int recvObj (int commitTag, MovableObject &theObject, FEM_ObjectBroker &theBroker, ChannelAddress *theAddress=0)
int sendMsg (int dbTag, int commitTag, const Message &, ChannelAddress *theAddress=0)
int recvMsg (int dbTag, int commitTag, Message &, ChannelAddress *theAddress=0)
int sendMatrix (int dbTag, int commitTag, const Matrix &theMatrix, ChannelAddress *theAddress=0)
int recvMatrix (int dbTag, int commitTag, Matrix &theMatrix, ChannelAddress *theAddress=0)
int sendVector (int dbTag, int commitTag, const Vector &theVector, ChannelAddress *theAddress=0)
int recvVector (int dbTag, int commitTag, Vector &theVector, ChannelAddress *theAddress=0)
int sendID (int dbTag, int commitTag, const ID &theID, ChannelAddress *theAddress=0)
int recvID (int dbTag, int commitTag, ID &theID, ChannelAddress *theAddress=0)

Protected Member Functions

unsigned int getPortNumber (void) const

Detailed Description

Definition at line 45 of file TCP_Socket.h.


Constructor & Destructor Documentation

TCP_Socket::TCP_Socket (  ) 

Definition at line 51 of file TCP_Socket.cpp.

References opserr.

TCP_Socket::TCP_Socket ( unsigned  int  ) 

Definition at line 89 of file TCP_Socket.cpp.

References opserr.

TCP_Socket::TCP_Socket ( unsigned int  other_Port,
char *  other_InetAddr 
)

Definition at line 130 of file TCP_Socket.cpp.

References opserr.

TCP_Socket::~TCP_Socket (  ) 

Definition at line 173 of file TCP_Socket.cpp.


Member Function Documentation

char * TCP_Socket::addToProgram ( void   )  [virtual]

Implements Channel.

Definition at line 696 of file TCP_Socket.cpp.

References getPortNumber(), and MAX_INET_ADDR.

int TCP_Socket::setUpConnection ( void   )  [virtual]

Implements Channel.

Definition at line 185 of file TCP_Socket.cpp.

References opserr.

int TCP_Socket::setNextAddress ( const ChannelAddress otherChannelAddress  )  [virtual]

Implements Channel.

Definition at line 250 of file TCP_Socket.cpp.

References SocketAddress::addr, SocketAddress::address, SocketAddress::addrLength, ChannelAddress::getType(), opserr, and SOCKET_TYPE.

virtual ChannelAddress* TCP_Socket::getLastSendersAddress ( void   )  [inline, virtual]

Implements Channel.

Definition at line 58 of file TCP_Socket.h.

int TCP_Socket::sendObj ( int  commitTag,
MovableObject theObject,
ChannelAddress theAddress = 0 
) [virtual]

Implements Channel.

Definition at line 277 of file TCP_Socket.cpp.

References SocketAddress::addr, SocketAddress::address, SocketAddress::addrLength, ChannelAddress::getType(), opserr, MovableObject::sendSelf(), and SOCKET_TYPE.

int TCP_Socket::recvObj ( int  commitTag,
MovableObject theObject,
FEM_ObjectBroker theBroker,
ChannelAddress theAddress = 0 
) [virtual]

Implements Channel.

Definition at line 306 of file TCP_Socket.cpp.

References SocketAddress::addr, SocketAddress::address, SocketAddress::addrLength, ChannelAddress::getType(), opserr, MovableObject::recvSelf(), SOCKET_TYPE, and theBroker.

int TCP_Socket::sendMsg ( int  dbTag,
int  commitTag,
const Message ,
ChannelAddress theAddress = 0 
) [virtual]

Implements Channel.

Definition at line 381 of file TCP_Socket.cpp.

References SocketAddress::addr_in, SocketAddress::address, SocketAddress::addrLength, Message::data, ChannelAddress::getType(), Message::length, opserr, and SOCKET_TYPE.

int TCP_Socket::recvMsg ( int  dbTag,
int  commitTag,
Message ,
ChannelAddress theAddress = 0 
) [virtual]

Implements Channel.

Definition at line 338 of file TCP_Socket.cpp.

References SocketAddress::addr_in, SocketAddress::address, SocketAddress::addrLength, Message::data, ChannelAddress::getType(), Message::length, opserr, and SOCKET_TYPE.

int TCP_Socket::sendMatrix ( int  dbTag,
int  commitTag,
const Matrix theMatrix,
ChannelAddress theAddress = 0 
) [virtual]

Implements Channel.

Definition at line 467 of file TCP_Socket.cpp.

References SocketAddress::addr_in, SocketAddress::address, SocketAddress::addrLength, Matrix::data, Matrix::dataSize, ChannelAddress::getType(), opserr, and SOCKET_TYPE.

int TCP_Socket::recvMatrix ( int  dbTag,
int  commitTag,
Matrix theMatrix,
ChannelAddress theAddress = 0 
) [virtual]

Implements Channel.

Definition at line 423 of file TCP_Socket.cpp.

References SocketAddress::addr_in, SocketAddress::address, SocketAddress::addrLength, Matrix::data, Matrix::dataSize, ChannelAddress::getType(), opserr, and SOCKET_TYPE.

int TCP_Socket::sendVector ( int  dbTag,
int  commitTag,
const Vector theVector,
ChannelAddress theAddress = 0 
) [virtual]

Implements Channel.

Definition at line 559 of file TCP_Socket.cpp.

References SocketAddress::addr_in, SocketAddress::address, SocketAddress::addrLength, ChannelAddress::getType(), opserr, SOCKET_TYPE, Vector::sz, and Vector::theData.

int TCP_Socket::recvVector ( int  dbTag,
int  commitTag,
Vector theVector,
ChannelAddress theAddress = 0 
) [virtual]

Implements Channel.

Definition at line 515 of file TCP_Socket.cpp.

References SocketAddress::addr_in, SocketAddress::address, SocketAddress::addrLength, ChannelAddress::getType(), opserr, SOCKET_TYPE, Vector::sz, and Vector::theData.

int TCP_Socket::sendID ( int  dbTag,
int  commitTag,
const ID theID,
ChannelAddress theAddress = 0 
) [virtual]

Implements Channel.

Definition at line 645 of file TCP_Socket.cpp.

References SocketAddress::addr_in, SocketAddress::address, SocketAddress::addrLength, ID::data, ChannelAddress::getType(), int(), opserr, SOCKET_TYPE, and ID::sz.

int TCP_Socket::recvID ( int  dbTag,
int  commitTag,
ID theID,
ChannelAddress theAddress = 0 
) [virtual]

Implements Channel.

Definition at line 601 of file TCP_Socket.cpp.

References SocketAddress::addr_in, SocketAddress::address, SocketAddress::addrLength, ID::data, ChannelAddress::getType(), int(), opserr, SOCKET_TYPE, and ID::sz.

unsigned int TCP_Socket::getPortNumber ( void   )  const [protected]

Definition at line 689 of file TCP_Socket.cpp.

Referenced by addToProgram().


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

Generated on Mon Oct 23 15:05:50 2006 for OpenSees by doxygen 1.5.0