Flow 1.0.1
Flow project: Public API.
Classes | Functions
flow::net_flow::asio Namespace Reference

Contains classes that add boost.asio integration to the main Flow-protocol classes such as net_flow::Node and net_flow::Peer_socket, so that net_flow sockets can be easily used in boost.asio-driven event loops, e.g., ones also performing TCP networking and scheduling timers. More...

Classes

class  Node
 A subclass of net_flow::Node that adds the ability to easily and directly use net_flow sockets in general boost.asio event loops. More...
 
class  Peer_socket
 A net_flow::Peer_socket that adds integration with boost.asio. More...
 
class  Server_socket
 A net_flow::Server_socket that adds integration with boost.asio. More...
 

Functions

std::ostream & operator<< (std::ostream &os, const Peer_socket *sock)
 Prints string representation of given socket to given standard ostream and returns the latter. More...
 
std::ostream & operator<< (std::ostream &os, const Server_socket *serv)
 Prints string representation of given socket to given standard ostream and returns the latter. More...
 

Detailed Description

Contains classes that add boost.asio integration to the main Flow-protocol classes such as net_flow::Node and net_flow::Peer_socket, so that net_flow sockets can be easily used in boost.asio-driven event loops, e.g., ones also performing TCP networking and scheduling timers.

See also
Main class net_flow::asio::Node.

Function Documentation

◆ operator<<() [1/2]

std::ostream & operator<< ( std::ostream &  os,
const Peer_socket sock 
)

Prints string representation of given socket to given standard ostream and returns the latter.

The representation includes the local and remote endpoints and the hex pointer value.

Note
shared_ptr forwards ostream output to the underlying pointer type, so this will affect Ptr output as well.
Parameters
osStream to print to.
sockObject to serialize. May be null.
Returns
os.

◆ operator<<() [2/2]

std::ostream & operator<< ( std::ostream &  os,
const Server_socket serv 
)

Prints string representation of given socket to given standard ostream and returns the latter.

The representation includes the local and remote endpoints and the hex pointer value.

Note
shared_ptr forwards ostream output to the underlying pointer type, so this will affect Ptr output as well.
Parameters
osStream to print to.
servObject to serialize. May be null.
Returns
os.