XC Open source finite element analysis program
Public Member Functions | Protected Member Functions | List of all members
XC::UDP_Socket Class Reference

DP_Socket is a sub-class of channel. It is implemented with Berkeley datagram sockets using the UDP protocol. Messages delivery is thus unreliable. More...

#include <UDP_Socket.h>

Inheritance diagram for XC::UDP_Socket:
XC::Channel

Public Member Functions

 UDP_Socket (unsigned int port)
 
 UDP_Socket (unsigned int other_Port, char *other_InetAddr)
 
char * addToProgram (void)
 
virtual int setUpConnection (void)
 
int setNextAddress (const ChannelAddress &otherChannelAddress)
 
int sendObj (int commitTag, MovableObject &, ChannelAddress *theAddress=0)
 Envía el objeto a través de éste canal.
 
int recvObj (int commitTag, MovableObject &, FEM_ObjectBroker &, ChannelAddress *theAddress=0)
 Recibe el objeto a través de éste canal.
 
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 &, ChannelAddress *theAddress=0)
 
int recvMatrix (int dbTag, int commitTag, Matrix &, ChannelAddress *theAddress=0)
 
int sendVector (int dbTag, int commitTag, const Vector &, ChannelAddress *theAddress=0)
 
int recvVector (int dbTag, int commitTag, Vector &, ChannelAddress *theAddress=0)
 
int sendID (int dbTag, int commitTag, const ID &, ChannelAddress *theAddress=0)
 
int recvID (int dbTag, int commitTag, ID &, ChannelAddress *theAddress=0)
 
- Public Member Functions inherited from XC::Channel
 Channel (void)
 Constructor.
 
virtual ChannelAddressgetLastSendersAddress (void)=0
 
virtual bool isDatastore (void) const
 
virtual int getDbTag (void) const
 
bool checkDbTag (const int &dbTag)
 Comprueba si ya se ha usado este dbTag.
 
const IDgetUsedTags (void) const
 Return the lista de dbTags usados.
 
void clearDbTags (void)
 
int getTag (void) const
 
template<class inputIterator >
int sendObjs (int commitTag, const inputIterator &first, const inputIterator &last, ChannelAddress *theAddress=nullptr)
 Send the objects on interval [first,last).
 
template<class inputIterator >
int recvObjs (int commitTag, const inputIterator &first, const inputIterator &last, FEM_ObjectBroker &, ChannelAddress *theAddress=nullptr)
 Recibe una serie de objetos.
 

Protected Member Functions

unsigned int getPortNumber (void) const
 
- Protected Member Functions inherited from XC::Channel
int sendMovable (int commitTag, MovableObject &)
 Envía el objeto a través de éste canal.
 
int receiveMovable (int commitTag, MovableObject &, FEM_ObjectBroker &)
 Recibe el objeto a través de éste canal.
 

Detailed Description

DP_Socket is a sub-class of channel. It is implemented with Berkeley datagram sockets using the UDP protocol. Messages delivery is thus unreliable.


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