FiberIO
Fiber-based C++ network library
Namespaces | Classes | Typedefs | Functions
fiberio Namespace Reference

Namespaces

 detail
 

Classes

class  address_family_not_supported_error
 Thrown when e.g. trying to use IPv6 and it's not supported on the system. More...
 
class  io_error
 This is thrown on I/O errors. More...
 
class  server_socket
 Server socket for listening for incoming connections. More...
 
class  socket
 Client socket for communicating over a network and opening connections. More...
 
class  socket_closed_error
 This is thrown when something fails because the connection was closed. More...
 

Typedefs

using socket_stream = boost::iostreams::stream< fiberio::detail::socket_device >
 std::basic_iostream type for reading/writing to a socket More...
 
using socket_streambuf = boost::iostreams::stream_buffer< fiberio::detail::socket_device >
 std::basic_streambuf type for reading/writing to a socket More...
 

Functions

void use_on_this_thread ()
 Call this first thing on a thread to use FiberIO on that thread. More...
 

Typedef Documentation

◆ socket_stream

using fiberio::socket_stream = typedef boost::iostreams::stream<fiberio::detail::socket_device>

std::basic_iostream type for reading/writing to a socket

Takes a fiberio::socket as constructor argument. See the C++ standard for how to use a basic_iostream and Boost.IOStreams for implementation details.

Definition at line 60 of file iostream.hpp.

◆ socket_streambuf

using fiberio::socket_streambuf = typedef boost::iostreams::stream_buffer<fiberio::detail::socket_device>

std::basic_streambuf type for reading/writing to a socket

Takes a fiberio::socket as constructor argument. See the C++ standard for how to use a basic_streambuf and Boost.IOStreams for implementation details.

Definition at line 68 of file iostream.hpp.

Function Documentation

◆ use_on_this_thread()

void fiberio::use_on_this_thread ( )

Call this first thing on a thread to use FiberIO on that thread.