Agora
1.2.0
Agora project
|
Go to the documentation of this file.
16 size_t tx_buffer_size = 0)
34 inline ssize_t
Connect(
const std::string& remote_address,
35 uint16_t remote_port) {
50 inline void Send(
const std::string& rem_hostname, uint16_t rem_port,
72 #endif // UDP_CLIENT_H_
byte
Definition: core.h:388
Declaration file for the UDPComm class. This class is used to send messages and receive messages from...
Definition: udp_comm.h:18
uint16_t src_port
Definition: eth_common.h:60
UDPClient(const std::string &src_addr)
Definition: udp_client.h:20
UDPClient(const std::string &src_addr, uint16_t src_port, size_t tx_buffer_size=0)
Definition: udp_client.h:15
ssize_t Connect(const std::string &remote_address, uint16_t remote_port)
The remote_address | remote_port is the address to which datagrams are sent. 1:1 association me->remo...
Definition: udp_client.h:34
UDPClient & operator=(const UDPClient &)=delete
void Send(const std::byte *msg, size_t len)
Send one UDP packet to the connected remote server.
Definition: udp_client.h:61
UDPComm comm_object_
Definition: udp_client.h:69
uint16_t len
Definition: eth_common.h:62
UDPClient(uint16_t src_port)
Definition: udp_client.h:18
ssize_t Connect(const std::string &remote_address, uint16_t remote_port) const
The remote_address | remote_port is the address to which datagrams are sent. 1:1 association me<->rem...
Definition: udp_comm.cc:250
void Send(const std::string &rem_hostname, uint16_t rem_port, const std::byte *msg, size_t len)
Send one UDP packet to a remote server. The client caches the the remote server's addrinfo after reso...
Definition: udp_client.h:50
void EnableRecording()
Definition: udp_comm.h:79
Definition: json.hpp:5213
void EnableRecording()
Definition: udp_client.h:66
Definition: udp_client.h:13
void Send(const std::string &rem_hostname, uint16_t rem_port, const std::byte *msg, size_t len)
Send one UDP packet to a remote server. The client caches the the remote server's addrinfo after reso...
Definition: udp_comm.cc:270