Commit c38a1608 authored by Dominik Charousset's avatar Dominik Charousset

Coding style nitpicks

parent 51fdf9a8
......@@ -62,8 +62,8 @@ class multiplexer {
* Tries to connect to host `h` on given `port` and returns a
* new scribe managing the connection on success.
*/
virtual connection_handle add_tcp_scribe(broker* ptr, const std::string& h,
uint16_t port) = 0;
virtual connection_handle add_tcp_scribe(broker* ptr, const std::string& host,
uint16_t port) = 0;
/**
* Creates a new TCP doorman from a native socket handle.
......@@ -72,10 +72,10 @@ class multiplexer {
/**
* Tries to create a new TCP doorman running on port `p`, optionally
* accepting only connections from host `h`.
* accepting only connections from IP address `in`.
*/
virtual accept_handle add_tcp_doorman(broker* ptr, uint16_t p,
const char* h = nullptr) = 0;
virtual accept_handle add_tcp_doorman(broker* ptr, uint16_t port,
const char* in = nullptr) = 0;
/**
* Simple wrapper for runnables
......
......@@ -34,13 +34,14 @@ namespace io {
* Publishes `whom` at `port`. The connection is managed by the middleman.
* @param whom Actor that should be published at `port`.
* @param port Unused TCP port.
* @param addr The IP address to listen to or `INADDR_ANY` if `addr == nullptr`.
* @param addr The IP address to listen to or `INADDR_ANY` if `in == nullptr`.
* @throws bind_failure
*/
inline void publish(caf::actor whom, uint16_t port,
const char* addr = nullptr) {
if (!whom) return;
io::publish_impl(actor_cast<abstract_actor_ptr>(whom), port, addr);
inline void publish(caf::actor whom, uint16_t port, const char* in = nullptr) {
if (!whom) {
return;
}
io::publish_impl(actor_cast<abstract_actor_ptr>(whom), port, in);
}
/**
......@@ -48,9 +49,11 @@ inline void publish(caf::actor whom, uint16_t port,
*/
template <class... Rs>
void typed_publish(typed_actor<Rs...> whom, uint16_t port,
const char* addr = nullptr) {
if (!whom) return;
io::publish_impl(actor_cast<abstract_actor_ptr>(whom), port, addr);
const char* in = nullptr) {
if (!whom) {
return;
}
io::publish_impl(actor_cast<abstract_actor_ptr>(whom), port, in);
}
} // namespace io
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment