Rosetta Protocols  2014.35
Classes | Public Member Functions | Private Member Functions | Private Attributes | List of all members
protocols::moves::UDPSocketClient Class Reference

PyMolMover helper class. Handle low level UDP transactions stuff. This is a port of original Python version of UDP socket client written writen for PyRosetta. More...

#include <PyMolMover.hh>

Classes

union  UUID
 unique id of this socket client More...
 

Public Member Functions

 UDPSocketClient ()
 ctor More...
 
 UDPSocketClient (UDPSocketClient const &other)
 cctor More...
 
 ~UDPSocketClient ()
 dtor More...
 
void sendMessage (std::string msg)
 
void show (std::ostream &output) const
 

Private Member Functions

void sendRAWMessage (int globalPacketID, int packetI, int packetCount, char *msg_begin, char *msg_end)
 

Private Attributes

unsigned int max_packet_size_
 last know mximum size of suspenseful sended UDP packet. ~64k for local connection and ~10k for inet connection More...
 
UUID uuid_
 Almost real UUID, but for simplicity we just use random sequence. More...
 
int sentCount_
 counter for number of packet already sent More...
 
sockaddr_in socket_addr_
 socket address and handle More...
 
int socket_h_
 

Detailed Description

PyMolMover helper class. Handle low level UDP transactions stuff. This is a port of original Python version of UDP socket client written writen for PyRosetta.

Constructor & Destructor Documentation

protocols::moves::UDPSocketClient::UDPSocketClient ( )
protocols::moves::UDPSocketClient::UDPSocketClient ( UDPSocketClient const &  other)

cctor

References socket_h_.

protocols::moves::UDPSocketClient::~UDPSocketClient ( )

dtor

References socket_h_.

Member Function Documentation

void protocols::moves::UDPSocketClient::sendMessage ( std::string  msg)
void protocols::moves::UDPSocketClient::sendRAWMessage ( int  globalPacketID,
int  packetI,
int  packetCount,
char *  msg_begin,
char *  msg_end 
)
private
void protocols::moves::UDPSocketClient::show ( std::ostream &  output) const

Member Data Documentation

unsigned int protocols::moves::UDPSocketClient::max_packet_size_
private

last know mximum size of suspenseful sended UDP packet. ~64k for local connection and ~10k for inet connection

Referenced by sendMessage(), show(), and UDPSocketClient().

int protocols::moves::UDPSocketClient::sentCount_
private

counter for number of packet already sent

Referenced by sendMessage(), and show().

sockaddr_in protocols::moves::UDPSocketClient::socket_addr_
private

socket address and handle

Referenced by sendRAWMessage(), show(), and UDPSocketClient().

int protocols::moves::UDPSocketClient::socket_h_
private
UUID protocols::moves::UDPSocketClient::uuid_
private

Almost real UUID, but for simplicity we just use random sequence.

Referenced by sendRAWMessage(), show(), and UDPSocketClient().


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