libmoost
|
Public Types | |
typedef moost::io::helper::native_io_t | native_io_t |
Public Member Functions | |
session_io_console (shared_ptr< asio::io_service > ios, native_io_t in_fd, native_io_t out_fd, native_io_t err_fd, const std::string &name) | |
void | set_nodelay () |
const std::string & | get_peer_string () const |
void | close () |
template<typename HandlerT > | |
void | write_stdout (const std::string &data, HandlerT handler) |
template<typename HandlerT > | |
void | write_stderr (const std::string &data, HandlerT handler) |
template<typename HandlerT > | |
void | read_some (void *data, size_t size, HandlerT handler) |
Private Member Functions | |
template<typename HandlerT > | |
void | write_console (native_io_t fd, const std::string &data, HandlerT handler) |
Private Attributes | |
mutex | m_mutex |
shared_ptr< asio::io_service > | m_ios |
moost::io::async_stream_forwarder | m_in_fwd |
native_io_t | m_out |
native_io_t | m_err |
const std::string | m_name |
Definition at line 218 of file remote_shell.cpp.
Definition at line 221 of file remote_shell.cpp.
session_io_console::session_io_console | ( | shared_ptr< asio::io_service > | ios, |
native_io_t | in_fd, | ||
native_io_t | out_fd, | ||
native_io_t | err_fd, | ||
const std::string & | name | ||
) | [inline] |
Definition at line 223 of file remote_shell.cpp.
void session_io_console::close | ( | ) | [inline] |
Definition at line 242 of file remote_shell.cpp.
const std::string& session_io_console::get_peer_string | ( | ) | const [inline] |
Definition at line 237 of file remote_shell.cpp.
void session_io_console::read_some | ( | void * | data, |
size_t | size, | ||
HandlerT | handler | ||
) | [inline] |
Definition at line 261 of file remote_shell.cpp.
void session_io_console::set_nodelay | ( | ) | [inline] |
Definition at line 232 of file remote_shell.cpp.
void session_io_console::write_console | ( | native_io_t | fd, |
const std::string & | data, | ||
HandlerT | handler | ||
) | [inline, private] |
void session_io_console::write_stderr | ( | const std::string & | data, |
HandlerT | handler | ||
) | [inline] |
Definition at line 255 of file remote_shell.cpp.
void session_io_console::write_stdout | ( | const std::string & | data, |
HandlerT | handler | ||
) | [inline] |
Definition at line 249 of file remote_shell.cpp.
native_io_t session_io_console::m_err [private] |
Definition at line 300 of file remote_shell.cpp.
Definition at line 298 of file remote_shell.cpp.
shared_ptr<asio::io_service> session_io_console::m_ios [private] |
Definition at line 297 of file remote_shell.cpp.
mutex session_io_console::m_mutex [private] |
Definition at line 296 of file remote_shell.cpp.
const std::string session_io_console::m_name [private] |
Definition at line 301 of file remote_shell.cpp.
native_io_t session_io_console::m_out [private] |
Definition at line 299 of file remote_shell.cpp.