Goby3  3.1.5a
2024.05.23
goby::middleware::io::TCPSessionCOBS< TCPServerThreadType > Class Template Reference

#include <goby/middleware/io/cobs/tcp_server.h>

Inheritance diagram for goby::middleware::io::TCPSessionCOBS< TCPServerThreadType >:
goby::middleware::io::detail::TCPSession< TCPServerThreadType >

Public Member Functions

 TCPSessionCOBS (boost::asio::ip::tcp::socket socket, TCPServerThreadType &server)
 
- Public Member Functions inherited from goby::middleware::io::detail::TCPSession< TCPServerThreadType >
 TCPSession (boost::asio::ip::tcp::socket socket, TCPServerThreadType &server)
 
virtual ~TCPSession ()
 
void start ()
 
const boost::asio::ip::tcp::endpoint & remote_endpoint ()
 
const boost::asio::ip::tcp::endpoint & local_endpoint ()
 
const std::string & glog_group ()
 

Friends

template<class Thread >
void cobs_async_write (Thread *this_thread, std::shared_ptr< const goby::middleware::protobuf::IOData > io_msg)
 
template<class Thread , class ThreadBase >
void cobs_async_read (Thread *this_thread, std::shared_ptr< ThreadBase > self)
 

Additional Inherited Members

- Protected Member Functions inherited from goby::middleware::io::detail::TCPSession< TCPServerThreadType >
void handle_write_success (std::size_t bytes_transferred)
 
void handle_write_error (const boost::system::error_code &ec)
 
void handle_read_success (std::size_t bytes_transferred, std::shared_ptr< goby::middleware::protobuf::IOData > io_msg)
 
void handle_read_error (const boost::system::error_code &ec)
 
const TCPServerThreadType::ConfigType & cfg ()
 
boost::asio::ip::tcp::socket & mutable_socket ()
 

Detailed Description

template<typename TCPServerThreadType>
class goby::middleware::io::TCPSessionCOBS< TCPServerThreadType >

Definition at line 58 of file tcp_server.h.

Constructor & Destructor Documentation

◆ TCPSessionCOBS()

template<typename TCPServerThreadType >
goby::middleware::io::TCPSessionCOBS< TCPServerThreadType >::TCPSessionCOBS ( boost::asio::ip::tcp::socket  socket,
TCPServerThreadType &  server 
)
inline

Definition at line 61 of file tcp_server.h.

Friends And Related Function Documentation

◆ cobs_async_read

template<typename TCPServerThreadType >
template<class Thread , class ThreadBase >
void cobs_async_read ( Thread this_thread,
std::shared_ptr< ThreadBase >  self = std::shared_ptr<ThreadBase>() 
)
friend

Definition at line 90 of file common.h.

◆ cobs_async_write

template<typename TCPServerThreadType >
template<class Thread >
void cobs_async_write ( Thread this_thread,
std::shared_ptr< const goby::middleware::protobuf::IOData io_msg 
)
friend

Definition at line 44 of file common.h.


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