![]() |
Rosetta
2021.16
|
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... | |
| UDPSocketClient & | operator= (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_ |
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 | ( | 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_.
| std::string protocols::moves::UDPSocketClient::get_address | ( | ) | const |
References socket_addr_.
Referenced by show().
|
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 | ) |
References max_packet_size_, sentCount_, socket_addr_, socket_h_, and uuid_.
| void protocols::moves::UDPSocketClient::sendMessage | ( | std::string | msg | ) |
References max_packet_size_, sendRAWMessage(), and sentCount_.
Referenced by protocols::moves::PyMOLMover::apply(), protocols::moves::PyMOLMover::print(), protocols::moves::PyMOLMover::send_any(), protocols::moves::PyMOLMover::send_energy(), protocols::moves::PyMOLMover::send_hbonds(), protocols::moves::PyMOLMover::send_membrane_planes(), and protocols::moves::PyMOLMover::send_RAW_Energies().
|
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 |
References get_address(), get_port(), max_packet_size_, sentCount_, protocols::moves::UDPSocketClient::UUID::shorts_, socket_addr_, socket_h_, and uuid_.
Referenced by protocols::moves::operator<<().
|
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().
|
private |
counter for number of packet already sent
Referenced by operator=(), sendMessage(), and show().
|
private |
socket address and handle
Referenced by get_address(), get_port(), operator=(), sendRAWMessage(), show(), and UDPSocketClient().
|
private |
Referenced by operator=(), sendRAWMessage(), show(), UDPSocketClient(), and ~UDPSocketClient().
|
private |
Almost real UUID, but for simplicity we just use random sequence.
Referenced by operator=(), sendRAWMessage(), show(), and UDPSocketClient().
1.8.7