![]() |
Rosetta Protocols
2014.16.56682
|
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_ |
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.
| protocols::moves::UDPSocketClient::UDPSocketClient | ( | ) |
ctor
References protocols::moves::getRG(), max_packet_size_, protocols::moves::UDPSocketClient::UUID::shorts_, socket_addr_, socket_h_, and uuid_.
| protocols::moves::UDPSocketClient::UDPSocketClient | ( | UDPSocketClient const & | other | ) |
cctor
References socket_h_.
| protocols::moves::UDPSocketClient::~UDPSocketClient | ( | ) |
dtor
References socket_h_.
| void protocols::moves::UDPSocketClient::sendMessage | ( | std::string | msg | ) |
|
private |
References protocols::moves::UDPSocketClient::UUID::bytes_, socket_addr_, socket_h_, and uuid_.
Referenced by sendMessage().
| void protocols::moves::UDPSocketClient::show | ( | std::ostream & | output | ) | const |
|
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().
|
private |
counter for number of packet already sent
Referenced by sendMessage(), and show().
|
private |
socket address and handle
Referenced by sendRAWMessage(), show(), and UDPSocketClient().
|
private |
Referenced by sendRAWMessage(), show(), UDPSocketClient(), and ~UDPSocketClient().
|
private |
Almost real UUID, but for simplicity we just use random sequence.
Referenced by sendRAWMessage(), show(), and UDPSocketClient().
1.8.7