Rosetta  2020.37
 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>

Classes

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

Public Member Functions

 UDPSocketClient (std::string const &address, unsigned int port, unsigned int max_packet_size)
 ctor More...
 
 UDPSocketClient (UDPSocketClient const &other)
 cctor More...
 
 ~UDPSocketClient ()
 dtor More...
 
UDPSocketClientoperator= (UDPSocketClient const &)
 
void sendMessage (std::string msg)
 
void show (std::ostream &output) const
 
std::string get_address () const
 
unsigned int get_port () const
 
unsigned int get_max_packet_size () 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 maximum 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 ( std::string const &  address,
unsigned int  port,
unsigned int  max_packet_size 
)
protocols::moves::UDPSocketClient::UDPSocketClient ( UDPSocketClient const &  other)

cctor

References socket_h_.

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

dtor

References socket_h_.

Member Function Documentation

std::string protocols::moves::UDPSocketClient::get_address ( ) const

References socket_addr_.

Referenced by show().

unsigned int protocols::moves::UDPSocketClient::get_max_packet_size ( ) const
inline

References max_packet_size_.

unsigned int protocols::moves::UDPSocketClient::get_port ( ) const

References socket_addr_.

Referenced by show().

UDPSocketClient & protocols::moves::UDPSocketClient::operator= ( UDPSocketClient const &  o)
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 maximum size of suspenseful sended UDP packet. ~64k for local connection and ~10k for inet connection

Referenced by get_max_packet_size(), operator=(), sendMessage(), show(), and UDPSocketClient().

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

counter for number of packet already sent

Referenced by operator=(), sendMessage(), and show().

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

socket address and handle

Referenced by get_address(), get_port(), operator=(), 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 operator=(), sendRAWMessage(), show(), and UDPSocketClient().


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