VSM C++ SDK
Vehicle Specific Modules SDK
socket_processor.h File Reference

Socket processor. More...

#include <ugcs/vsm/io_request.h>
#include <ugcs/vsm/piped_request_waiter.h>
#include <ugcs/vsm/singleton.h>
#include <ugcs/vsm/socket_address.h>
#include <thread>
#include <unordered_map>
#include <vector>

Go to the source code of this file.

Classes

class  ugcs::vsm::Local_interface
 
class  ugcs::vsm::Socket_processor
 Socket processor. More...
 
class  ugcs::vsm::Socket_processor::Stream
 Socket specific stream. More...
 

Namespaces

 ugcs
 UGCS root namespace.
 
 ugcs::vsm
 All VSM SDK functionality resides in this namespace.
 

Typedefs

typedef Socket_processor::Stream ugcs::vsm::Socket_stream
 Convenience types aliases. More...
 
typedef Socket_processor::Socket_listener ugcs::vsm::Socket_listener
 

Functions

template<class __Callable , typename... __Args>
 ugcs::vsm::__DEFINE_CALLBACK_BUILDER_BODY (Make_socket_connect_callback,(Socket_stream::Ref, Io_result),(nullptr, Io_result::OTHER_FAILURE)) template< class __Callable
 Convenience builder for socket connect operation callbacks. More...
 
typename __Args ugcs::vsm::__DEFINE_CALLBACK_BUILDER_BODY (Make_socket_listen_callback,(Socket_listener::Ref, Io_result),(nullptr, Io_result::OTHER_FAILURE)) template< class __Callable
 Convenience builder for socket accept operation callbacks. More...
 
typename __Args typename __Args ugcs::vsm::__DEFINE_CALLBACK_BUILDER_BODY (Make_socket_accept_callback,(Socket_stream::Ref, Io_result),(nullptr, Io_result::OTHER_FAILURE)) template< class __Callable
 Convenience builder for socket Read_from operation callbacks. More...
 
typename __Args typename __Args typename __Args ugcs::vsm::__DEFINE_CALLBACK_BUILDER_BODY (Make_socket_read_from_callback,(Io_buffer::Ptr, Io_result, Socket_address::Ptr),(nullptr, Io_result::OTHER_FAILURE, nullptr)) template< class __Callable
 Convenience builder for Read operation callbacks. More...
 

Detailed Description

Socket processor.

Used to create and handle socket-based I/O streams.