|
Rosetta 3.5
|
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 () | |
| ~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_ |
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.
| protocols::moves::UDPSocketClient::UDPSocketClient | ( | ) |
Definition at line 82 of file PyMolMover.cc.
References protocols::moves::getRG(), max_packet_size_, protocols::moves::UDPSocketClient::UUID::shorts_, socket_addr_, socket_h_, and uuid_.
| protocols::moves::UDPSocketClient::~UDPSocketClient | ( | ) |
Definition at line 109 of file PyMolMover.cc.
References socket_h_.
| void protocols::moves::UDPSocketClient::sendMessage | ( | std::string | msg) |
Definition at line 120 of file PyMolMover.cc.
References max_packet_size_, sendRAWMessage(), and sentCount_.
Referenced by protocols::moves::PyMolMover::apply(), protocols::moves::PyMolMover::print(), protocols::moves::PyMolMover::send_energy(), and protocols::moves::PyMolMover::send_RAW_Energies().
|
private |
Definition at line 142 of file PyMolMover.cc.
References protocols::moves::UDPSocketClient::UUID::bytes_, socket_addr_, socket_h_, and uuid_.
Referenced by sendMessage().
|
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().
|
private |
counter for number of packet already sent
Definition at line 264 of file PyMolMover.hh.
Referenced by sendMessage().
|
private |
socket address and handle
Definition at line 267 of file PyMolMover.hh.
Referenced by sendRAWMessage(), and UDPSocketClient().
|
private |
Definition at line 268 of file PyMolMover.hh.
Referenced by sendRAWMessage(), UDPSocketClient(), and ~UDPSocketClient().
|
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().
1.8.4