UDP_Socket Class Reference

#include <UDP_Socket.h>

Inheritance diagram for UDP_Socket:

Channel List of all members.

Public Member Functions

 UDP_Socket ()
 UDP_Socket (unsigned int port)
 UDP_Socket (unsigned int other_Port, char *other_InetAddr)
 ~UDP_Socket ()
char * addToProgram (void)
virtual int setUpConnection (void)
int setNextAddress (const ChannelAddress &otherChannelAddress)
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 44 of file UDP_Socket.h.


Constructor & Destructor Documentation

UDP_Socket::UDP_Socket (  ) 

Definition at line 50 of file UDP_Socket.cpp.

References opserr.

UDP_Socket::UDP_Socket ( unsigned int  port  ) 

Definition at line 79 of file UDP_Socket.cpp.

References opserr.

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

Definition at line 110 of file UDP_Socket.cpp.

References opserr.

UDP_Socket::~UDP_Socket (  ) 

Definition at line 138 of file UDP_Socket.cpp.


Member Function Documentation

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

Implements Channel.

Definition at line 673 of file UDP_Socket.cpp.

References getPortNumber(), and MAX_INET_ADDR.

int UDP_Socket::setUpConnection ( void   )  [virtual]

Implements Channel.

Definition at line 145 of file UDP_Socket.cpp.

References SocketAddress::addr, SocketAddress::address, SocketAddress::addrLength, exit(), and opserr.

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

Implements Channel.

Definition at line 178 of file UDP_Socket.cpp.

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

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

Implements Channel.

Definition at line 202 of file UDP_Socket.cpp.

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

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

Implements Channel.

Definition at line 230 of file UDP_Socket.cpp.

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

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

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

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

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

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

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

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

Implements Channel.

Definition at line 621 of file UDP_Socket.cpp.

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

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

Implements Channel.

Definition at line 569 of file UDP_Socket.cpp.

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

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

Definition at line 665 of file UDP_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