Network Utilities#
These transport classes expose the lower-level UDP layer used by the SDK’s
real-time path. Most application code will stay at rb::Robot<T>, but these
types are useful when you need direct transport control.
Headers
Type |
Header |
|---|---|
|
|
|
|
|
|
Public Member Functions
Type or method group |
Purpose |
Notes |
|---|---|---|
|
Base transport interface for |
Implemented by the IPv4 and IPv6 client classes. |
|
Connect to a specific remote UDP endpoint and send or receive packets. |
Choose the variant that matches the target address family. |
|
Bind a local UDP socket, receive packets, and reply to clients. |
Useful for protocol tools and custom RT experiments. |
Detailed Reference
-
class UdpClient#
Subclassed by rb::UdpIPv4Client, rb::UdpIPv6Client
-
class UdpServer#
Public Functions
-
inline explicit UdpServer(const int port = 0)#
-
inline ~UdpServer()#
-
inline void ClearBuffer() const#
-
inline int GetPort() const#
-
inline int RecvFrom(unsigned char *buffer, size_t max_buf_size, struct sockaddr_storage &client_addr) const#
-
inline void SendTo(unsigned char *buffer, size_t buf_size, const struct sockaddr_storage &client_addr) const#
-
inline explicit UdpServer(const int port = 0)#
Related Types
Examples
real_time_control_command.cpprtcomm_protocol.cpp