Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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>

Collaboration diagram for protocols::moves::UDPSocketClient:
Collaboration graph
[legend]

Classes

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

Public Member Functions

 UDPSocketClient ()
 
 ~UDPSocketClient ()
 
void sendMessage (std::string msg)
 

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.

Definition at line 238 of file PyMolMover.hh.

Constructor & Destructor Documentation

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

Definition at line 109 of file PyMolMover.cc.

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

Definition at line 142 of file PyMolMover.cc.

References protocols::moves::UDPSocketClient::UUID::bytes_, socket_addr_, socket_h_, and uuid_.

Referenced by sendMessage().

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

Definition at line 252 of file PyMolMover.hh.

Referenced by sendMessage(), and UDPSocketClient().

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

counter for number of packet already sent

Definition at line 264 of file PyMolMover.hh.

Referenced by sendMessage().

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

socket address and handle

Definition at line 267 of file PyMolMover.hh.

Referenced by sendRAWMessage(), and UDPSocketClient().

int protocols::moves::UDPSocketClient::socket_h_
private

Definition at line 268 of file PyMolMover.hh.

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

UUID protocols::moves::UDPSocketClient::uuid_
private

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

Definition at line 261 of file PyMolMover.hh.

Referenced by sendRAWMessage(), and UDPSocketClient().


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