|
CCF
|
#include <udp.h>
Inherits asynchost::with_uv_handle< uv_udp_t >.
Public Member Functions | |
| void | set_behaviour (std::unique_ptr< SocketBehaviour< UDP > > b) |
| std::string | get_host () const |
| std::string | get_port () const |
| std::optional< std::string > | get_listen_name () const |
| bool | listen (const std::string &host_, const std::string &port_, const std::optional< std::string > &name=std::nullopt) |
| Listen to packets on host:port. | |
| void | start (int64_t id) |
| Start the service via behaviour (register on ringbuffer, etc) | |
| bool | connect (const std::string &, const std::string &) |
| bool | write (size_t len, const uint8_t *data, sockaddr addr) |
Public Member Functions inherited from asynchost::with_uv_handle< uv_udp_t > | |
| with_uv_handle (const with_uv_handle< uv_udp_t > &that)=delete | |
| with_uv_handle (with_uv_handle< uv_udp_t > &&that)=delete | |
Static Public Member Functions | |
| static void | reset_read_quota () |
Friends | |
| class | close_ptr< UDPImpl > |
Additional Inherited Members | |
Protected Member Functions inherited from asynchost::with_uv_handle< uv_udp_t > | |
| with_uv_handle ()=default | |
| virtual | ~with_uv_handle ()=default |
| void | close () |
Protected Attributes inherited from asynchost::with_uv_handle< uv_udp_t > | |
| uv_udp_t | uv_handle |
For now this is server only, as we have no immediate plans to create node-to-node UDP channels or use UDP for REST between nodes
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Listen to packets on host:port.
|
inlinestatic |
|
inline |
|
inline |
Start the service via behaviour (register on ringbuffer, etc)
|
inline |