Public Types | Public Member Functions | Static Public Member Functions | List of all members
util::uring::FiberSocket Class Reference
+ Inheritance diagram for util::uring::FiberSocket:
+ Collaboration diagram for util::uring::FiberSocket:

Public Types

using native_handle_type = int
 
using endpoint_type = ::boost::asio::ip::tcp::endpoint
 
using error_code = std::error_code
 
using expected_size_t = nonstd::expected< size_t, error_code >
 
- Public Types inherited from util::SyncStreamInterface
using expected_size_t = nonstd::expected< size_t, std::error_code >
 

Public Member Functions

 FiberSocket (FiberSocket &&other) noexcept
 
FiberSocketoperator= (FiberSocket &&other) noexcept
 
ABSL_MUST_USE_RESULT error_code Listen (unsigned port, unsigned backlog, uint32_t sock_opts_mask=0)
 
ABSL_MUST_USE_RESULT error_code Accept (FiberSocket *peer)
 
ABSL_MUST_USE_RESULT error_code Connect (const endpoint_type &ep)
 
ABSL_MUST_USE_RESULT error_code Shutdown (int how)
 
ABSL_MUST_USE_RESULT error_code Close ()
 
expected_size_t Send (const iovec *ptr, size_t len) override
 
expected_size_t Send (const boost::asio::const_buffer &b)
 
expected_size_t Recv (iovec *ptr, size_t len) override
 
expected_size_t Recv (const boost::asio::mutable_buffer &mb)
 
native_handle_type native_handle () const
 
void Detach ()
 Removes the ownership over file descriptor. Use with caution.
 
endpoint_type LocalEndpoint () const
 
endpoint_type RemoteEndpoint () const
 
bool IsOpen () const
 IsOpen does not promise that the socket is TCP connected or live,.
 
void set_proactor (Proactor *p)
 
Proactorproactor ()
 

Static Public Member Functions

static bool IsConnClosed (const error_code &ec)
 

Detailed Description

Definition at line 21 of file fiber_socket.h.


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