Seastar
High performance C++ framework for concurrent servers
Public Member Functions | List of all members
seastar::net::udp_channel Class Reference

Public Member Functions

 udp_channel (std::unique_ptr< udp_channel_impl >)
 
 udp_channel (udp_channel &&)
 
udp_channeloperator= (udp_channel &&)
 
socket_address local_address () const
 
future< udp_datagramreceive ()
 
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 ()
 

Member Function Documentation

◆ close()

void seastar::net::udp_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().


The documentation for this class was generated from the following file: