Seastar
High performance C++ framework for concurrent servers
|
Public Member Functions | |
datagram_channel (std::unique_ptr< datagram_channel_impl >) noexcept | |
datagram_channel (datagram_channel &&) noexcept | |
datagram_channel & | operator= (datagram_channel &&) noexcept |
socket_address | local_address () const |
future< datagram > | receive () |
future | send (const socket_address &dst, const char *msg) |
future | send (const socket_address &dst, packet p) |
bool | is_closed () const |
void | shutdown_input () |
Causes a pending receive() to complete (possibly with an exception) | |
void | shutdown_output () |
Causes a pending send() to complete (possibly with an exception) | |
void | close () |
void seastar::net::datagram_channel::close | ( | ) |
Close the channel and releases all resources.
Must be called only when there are no unfinished send() or receive() calls. You can force pending calls to complete soon by calling shutdown_input() and shutdown_output().