|
| | ConsumerSocket (int protocol) |
| | Create a new consumer socket. More...
|
| |
| | ConsumerSocket (int protocol, asio::io_service &io_service) |
| | Create a new consumer socket, passing an io_service to it. Passing an io_service means that the caller must explicitely call io_service.run() for the consumer to start. Any call to consume won't be blocking. This can be used in case we want to share a single thread among multiple consumer sockets. The caller MUST ensure the provided io_service will outlive the ConsumerSocket. More...
|
| |
|
| ~ConsumerSocket () |
| | Destroy the consumer socket.
|
| |
|
void | connect () |
| | Connect the consumer socket to the underlying hICN forwarder.
|
| |
|
bool | isRunning () |
| | Check whether consumer socket is active or not.
|
| |
| int | consume (const Name &name) |
| |
|
int | asyncConsume (const Name &name) |
| |
| void | stop () |
| |
| void | resume () |
| |
| asio::io_service & | getIoService () |
| |
|
int | setSocketOption (int socket_option_key, ReadCallback *socket_option_value) |
| |
|
int | getSocketOption (int socket_option_key, ReadCallback **socket_option_value) |
| |
|
int | setSocketOption (int socket_option_key, double socket_option_value) |
| |
|
int | setSocketOption (int socket_option_key, uint32_t socket_option_value) |
| |
|
int | setSocketOption (int socket_option_key, std::nullptr_t socket_option_value) |
| |
|
int | setSocketOption (int socket_option_key, bool socket_option_value) |
| |
|
int | setSocketOption (int socket_option_key, ConsumerContentObjectCallback socket_option_value) |
| |
|
int | setSocketOption (int socket_option_key, ConsumerInterestCallback socket_option_value) |
| |
|
int | setSocketOption (int socket_option_key, interface::IcnObserver *socket_option_value) |
| |
|
int | setSocketOption (int socket_option_key, const std::shared_ptr< auth::Verifier > &socket_option_value) |
| |
|
int | setSocketOption (int socket_option_key, const std::string &socket_option_value) |
| |
|
int | setSocketOption (int socket_option_key, ConsumerTimerCallback socket_option_value) |
| |
|
int | getSocketOption (int socket_option_key, double &socket_option_value) |
| |
|
int | getSocketOption (int socket_option_key, uint32_t &socket_option_value) |
| |
|
int | getSocketOption (int socket_option_key, bool &socket_option_value) |
| |
|
int | getSocketOption (int socket_option_key, Name **socket_option_value) |
| |
|
int | getSocketOption (int socket_option_key, ConsumerContentObjectCallback **socket_option_value) |
| |
|
int | getSocketOption (int socket_option_key, ConsumerInterestCallback **socket_option_value) |
| |
|
int | getSocketOption (int socket_option_key, IcnObserver **socket_option_value) |
| |
|
int | getSocketOption (int socket_option_key, std::shared_ptr< auth::Verifier > &socket_option_value) |
| |
|
int | getSocketOption (int socket_option_key, std::string &socket_option_value) |
| |
|
int | getSocketOption (int socket_option_key, ConsumerTimerCallback **socket_option_value) |
| |
|
int | getSocketOption (int socket_option_key, interface::TransportStatistics **socket_option_value) |
| |
Main interface for consumer applications.
The consumer socket is the main interface for a consumer application. It allows to retrieve an application data from one/many producers, by hiding all the complexity of the transport protocol used underneath.