[][src]Function routinator::rtr::rtr_listener

pub fn rtr_listener(
    history: OriginsHistory,
    config: &Config
) -> (NotifySender, impl Future<Item = (), Error = ()>)

Returns a future for the RTR server.

The server will be configured according to config including creating listener sockets for all the listen addresses mentioned. The data exchanged with the clients is taken from history.

In order to be able to send notifications, the function also creates a channel. It returns the sending half of that channel together with the future.