A streaming server. More...
#include <Server.h>
Public Member Functions | |
void | AsyncRun (size_t worker_threads) |
void | CloseStream (carla::streaming::detail::stream_id_type id) |
void | DisableForROS (stream_id sensor_id) |
void | EnableForROS (stream_id sensor_id) |
auto | GetLocalEndpoint () const |
token_type | GetToken (stream_id sensor_id) |
bool | IsEnabledForROS (stream_id sensor_id) |
Stream | MakeStream () |
void | Run () |
Server (uint16_t port) | |
Server (const std::string &address, uint16_t port) | |
Server (const std::string &address, uint16_t port, const std::string &external_address, uint16_t external_port) | |
void | SetSynchronousMode (bool is_synchro) |
void | SetTimeout (time_duration timeout) |
~Server () | |
Private Types | |
using | protocol_type = low_level::Server< detail::tcp::Server >::protocol_type |
using | stream_id = carla::streaming::detail::stream_id_type |
using | token_type = carla::streaming::detail::token_type |
using | underlying_server = low_level::Server< detail::tcp::Server > |
Private Attributes | |
ThreadPool | _pool |
underlying_server | _server |
A streaming server.
Each new stream has a token associated, this token can be used by a client to subscribe to the stream.
Definition at line 21 of file streaming/Server.h.
|
private |
Definition at line 23 of file streaming/Server.h.
Definition at line 25 of file streaming/Server.h.
Definition at line 24 of file streaming/Server.h.
Definition at line 22 of file streaming/Server.h.
|
inlineexplicit |
Definition at line 28 of file streaming/Server.h.
|
inlineexplicit |
Definition at line 31 of file streaming/Server.h.
|
inlineexplicit |
Definition at line 34 of file streaming/Server.h.
|
inline |
Definition at line 42 of file streaming/Server.h.
References _pool, and carla::ThreadPool::Stop().
|
inline |
Definition at line 66 of file streaming/Server.h.
References _pool, and carla::ThreadPool::AsyncRun().
|
inline |
Definition at line 58 of file streaming/Server.h.
References _server, and carla::streaming::low_level::Server< T >::CloseStream().
|
inline |
Definition at line 82 of file streaming/Server.h.
References _server, and carla::streaming::low_level::Server< T >::DisableForROS().
Referenced by FCarlaServer::FPimpl::BindActions(), and FCarlaEngine::NotifyInitGame().
|
inline |
Definition at line 78 of file streaming/Server.h.
References _server, and carla::streaming::low_level::Server< T >::EnableForROS().
Referenced by FCarlaServer::FPimpl::BindActions(), and FCarlaEngine::NotifyInitGame().
|
inline |
Definition at line 46 of file streaming/Server.h.
References _server, and carla::streaming::low_level::Server< T >::GetLocalEndpoint().
|
inline |
Definition at line 74 of file streaming/Server.h.
References _server, and carla::streaming::low_level::Server< T >::GetToken().
Referenced by FCarlaServer::FPimpl::BindActions(), and FCarlaEngine::NotifyInitGame().
|
inline |
Definition at line 86 of file streaming/Server.h.
References _server, and carla::streaming::low_level::Server< T >::IsEnabledForROS().
Referenced by FCarlaServer::FPimpl::BindActions(), and FCarlaEngine::NotifyInitGame().
|
inline |
Definition at line 54 of file streaming/Server.h.
References _server, and carla::streaming::low_level::Server< T >::MakeStream().
|
inline |
Definition at line 62 of file streaming/Server.h.
References _pool, and carla::ThreadPool::Run().
|
inline |
Definition at line 70 of file streaming/Server.h.
References _server, and carla::streaming::low_level::Server< T >::SetSynchronousMode().
Referenced by FCarlaServer::FPimpl::BindActions().
|
inline |
Definition at line 50 of file streaming/Server.h.
References _server, and carla::streaming::low_level::Server< T >::SetTimeout().
|
private |
Definition at line 94 of file streaming/Server.h.
Referenced by AsyncRun(), Run(), and ~Server().
|
private |
Definition at line 96 of file streaming/Server.h.
Referenced by CloseStream(), DisableForROS(), EnableForROS(), GetLocalEndpoint(), GetToken(), IsEnabledForROS(), MakeStream(), SetSynchronousMode(), and SetTimeout().