template<const goby::middleware::Group & line_in_group, const goby::middleware::Group & line_out_group, PubSubLayer publish_layer, PubSubLayer subscribe_layer, typename IOConfig, typename SocketType, template< class > class ThreadType, bool use_indexed_groups = false>
class goby::middleware::io::detail::IOThread< line_in_group, line_out_group, publish_layer, subscribe_layer, IOConfig, SocketType, ThreadType, use_indexed_groups >
Definition at line 79 of file io_interface.h.
template<const goby::middleware::Group & line_in_group, const goby::middleware::Group & line_out_group, PubSubLayer publish_layer, PubSubLayer subscribe_layer, typename IOConfig , typename SocketType , template< class > class ThreadType, bool use_indexed_groups = false>
Constructs the thread.
- Parameters
-
config | A reference to the configuration read by the main application at launch |
index | Thread index for multiple instances in a given application (-1 indicates a single instance) |
glog_group | String name for group to use for glog |
Definition at line 94 of file io_interface.h.
template<const goby::middleware::Group & line_in_group, const goby::middleware::Group & line_out_group, PubSubLayer publish_layer, PubSubLayer subscribe_layer, typename IOConfig , typename SocketType , template< class > class ThreadType, bool use_indexed_groups = false>
template<const goby::middleware::Group & line_in_group, const goby::middleware::Group & line_out_group, PubSubLayer publish_layer, PubSubLayer subscribe_layer, typename IOConfig , typename SocketType , template< class > class ThreadType, bool use_indexed_groups = false>
Starts an asynchronous read on the socket.
Implemented in goby::middleware::io::UDPOneToManyThread< line_in_group, line_out_group, publish_layer, subscribe_layer, Config, ThreadType, use_indexed_groups >, and goby::middleware::io::UDPOneToManyThread< line_in_group, line_out_group, PubSubLayer::INTERPROCESS, PubSubLayer::INTERTHREAD, goby::middleware::protobuf::UDPPointToPointConfig, goby::middleware::SimpleThread, false >.
template<const goby::middleware::Group & line_in_group, const goby::middleware::Group & line_out_group, PubSubLayer publish_layer, PubSubLayer subscribe_layer, typename IOConfig , typename SocketType , template< class > class ThreadType, bool use_indexed_groups = false>
Starts an asynchronous write from data published.
Implemented in goby::middleware::io::UDPOneToManyThread< line_in_group, line_out_group, publish_layer, subscribe_layer, Config, ThreadType, use_indexed_groups >, and goby::middleware::io::UDPOneToManyThread< line_in_group, line_out_group, PubSubLayer::INTERPROCESS, PubSubLayer::INTERTHREAD, goby::middleware::protobuf::UDPPointToPointConfig, goby::middleware::SimpleThread, false >.
template<const goby::middleware::Group & line_in_group, const goby::middleware::Group & line_out_group, PubSubLayer publish_layer, PubSubLayer subscribe_layer, typename IOConfig , typename SocketType , template< class > class ThreadType, bool use_indexed_groups = false>
template<const goby::middleware::Group & line_in_group, const goby::middleware::Group & line_out_group, PubSubLayer publish_layer, PubSubLayer subscribe_layer, typename IOConfig , typename SocketType , template< class > class ThreadType, bool use_indexed_groups = false>
const std::string& goby::middleware::io::detail::IOThread< line_in_group, line_out_group, publish_layer, subscribe_layer, IOConfig, SocketType, ThreadType, use_indexed_groups >::glog_group |
( |
| ) |
|
|
inlineprotected |
template<const goby::middleware::Group & line_in_group, const goby::middleware::Group & line_out_group, goby::middleware::io::PubSubLayer publish_layer, goby::middleware::io::PubSubLayer subscribe_layer, typename IOConfig , typename SocketType , template< class > class ThreadType, bool use_indexed_groups>
void goby::middleware::io::detail::IOThread< line_in_group, line_out_group, publish_layer, subscribe_layer, IOConfig, SocketType, ThreadType, use_indexed_groups >::handle_read_error |
( |
const boost::system::error_code & |
ec | ) |
|
|
protected |
template<const goby::middleware::Group & line_in_group, const goby::middleware::Group & line_out_group, PubSubLayer publish_layer, PubSubLayer subscribe_layer, typename IOConfig , typename SocketType , template< class > class ThreadType, bool use_indexed_groups = false>
void goby::middleware::io::detail::IOThread< line_in_group, line_out_group, publish_layer, subscribe_layer, IOConfig, SocketType, ThreadType, use_indexed_groups >::handle_read_success |
( |
std::size_t |
bytes_transferred, |
|
|
const std::string & |
bytes |
|
) |
| |
|
inlineprotected |
template<const goby::middleware::Group & line_in_group, const goby::middleware::Group & line_out_group, PubSubLayer publish_layer, PubSubLayer subscribe_layer, typename IOConfig , typename SocketType , template< class > class ThreadType, bool use_indexed_groups = false>
template<const goby::middleware::Group & line_in_group, const goby::middleware::Group & line_out_group, goby::middleware::io::PubSubLayer publish_layer, goby::middleware::io::PubSubLayer subscribe_layer, typename IOConfig , typename SocketType , template< class > class ThreadType, bool use_indexed_groups>
void goby::middleware::io::detail::IOThread< line_in_group, line_out_group, publish_layer, subscribe_layer, IOConfig, SocketType, ThreadType, use_indexed_groups >::handle_write_error |
( |
const boost::system::error_code & |
ec | ) |
|
|
protected |
template<const goby::middleware::Group & line_in_group, const goby::middleware::Group & line_out_group, PubSubLayer publish_layer, PubSubLayer subscribe_layer, typename IOConfig , typename SocketType , template< class > class ThreadType, bool use_indexed_groups = false>
void goby::middleware::io::detail::IOThread< line_in_group, line_out_group, publish_layer, subscribe_layer, IOConfig, SocketType, ThreadType, use_indexed_groups >::handle_write_success |
( |
std::size_t |
bytes_transferred | ) |
|
|
inlineprotected |
template<const goby::middleware::Group & line_in_group, const goby::middleware::Group & line_out_group, PubSubLayer publish_layer, PubSubLayer subscribe_layer, typename IOConfig , typename SocketType , template< class > class ThreadType, bool use_indexed_groups = false>
template<const goby::middleware::Group & line_in_group, const goby::middleware::Group & line_out_group, PubSubLayer publish_layer, PubSubLayer subscribe_layer, typename IOConfig , typename SocketType , template< class > class ThreadType, bool use_indexed_groups = false>
template<const goby::middleware::Group & line_in_group, const goby::middleware::Group & line_out_group, PubSubLayer publish_layer, PubSubLayer subscribe_layer, typename IOConfig , typename SocketType , template< class > class ThreadType, bool use_indexed_groups = false>
Access the (mutable) socket (or serial_port) object.
Definition at line 212 of file io_interface.h.
template<const goby::middleware::Group & line_in_group, const goby::middleware::Group & line_out_group, PubSubLayer publish_layer, PubSubLayer subscribe_layer, typename IOConfig , typename SocketType , template< class > class ThreadType, bool use_indexed_groups = false>
Opens the newly created socket/serial_port.
template<const goby::middleware::Group & line_in_group, const goby::middleware::Group & line_out_group, PubSubLayer publish_layer, PubSubLayer subscribe_layer, typename IOConfig , typename SocketType , template< class > class ThreadType, bool use_indexed_groups = false>
template<const goby::middleware::Group & line_in_group, const goby::middleware::Group & line_out_group, PubSubLayer publish_layer, PubSubLayer subscribe_layer, typename IOConfig , typename SocketType , template< class > class ThreadType, bool use_indexed_groups = false>
template<const goby::middleware::Group & line_in_group, const goby::middleware::Group & line_out_group, PubSubLayer publish_layer, PubSubLayer subscribe_layer, typename IOConfig , typename SocketType , template< class > class ThreadType, bool use_indexed_groups = false>
template<class IOThreadImplementation >