Public Types | |
typedef std::function< void(const boost::system::error_code &ec, size_t)> | Handler |
Public Member Functions | |
virtual size_t | available () |
virtual void | close () |
virtual void | prepareRead (const BufferPtr &buf, const Handler &handler) |
virtual size_t | read (const BufferPtr &buf) |
template<typename X , typename Y > | |
SocketStream (X &x, Y &y) | |
template<typename X > | |
SocketStream (X &x) | |
virtual void | write (const BufferList &bufs, const Handler &handler) |
Public Attributes | |
T | sock |
Definition at line 53 of file SocketManager.cpp.
typedef std::function<void (const boost::system::error_code& ec, size_t)> adchpp::AsyncStream::Handler [inherited] |
Definition at line 22 of file AsyncStream.h.
adchpp::SocketStream< T >::SocketStream | ( | X & | x | ) | [inline] |
Definition at line 56 of file SocketManager.cpp.
adchpp::SocketStream< T >::SocketStream | ( | X & | x, | |
Y & | y | |||
) | [inline] |
Definition at line 59 of file SocketManager.cpp.
virtual size_t adchpp::SocketStream< T >::available | ( | ) | [inline, virtual] |
Implements adchpp::AsyncStream.
Definition at line 62 of file SocketManager.cpp.
References adchpp::SocketStream< T >::sock.
virtual void adchpp::SocketStream< T >::close | ( | ) | [inline, virtual] |
Implements adchpp::AsyncStream.
Definition at line 99 of file SocketManager.cpp.
References adchpp::SocketStream< T >::sock.
virtual void adchpp::SocketStream< T >::prepareRead | ( | const BufferPtr & | buf, | |
const Handler & | handler | |||
) | [inline, virtual] |
Implements adchpp::AsyncStream.
Definition at line 66 of file SocketManager.cpp.
References adchpp::SocketStream< T >::sock.
virtual size_t adchpp::SocketStream< T >::read | ( | const BufferPtr & | buf | ) | [inline, virtual] |
Implements adchpp::AsyncStream.
Definition at line 74 of file SocketManager.cpp.
References adchpp::SocketStream< T >::sock.
virtual void adchpp::SocketStream< T >::write | ( | const BufferList & | bufs, | |
const Handler & | handler | |||
) | [inline, virtual] |
Implements adchpp::AsyncStream.
Definition at line 78 of file SocketManager.cpp.
References adchpp::SocketStream< T >::sock.
T adchpp::SocketStream< T >::sock |
Definition at line 108 of file SocketManager.cpp.
Referenced by adchpp::SocketStream< T >::available(), adchpp::SocketStream< T >::close(), adchpp::SocketStream< T >::prepareRead(), adchpp::SocketStream< T >::read(), and adchpp::SocketStream< T >::write().