| 238 | } |
| 239 | |
| 240 | expected<uint16_t> middleman::open(uint16_t port, const char* in, bool reuse) { |
| 241 | std::string str; |
| 242 | if (in != nullptr) |
| 243 | str = in; |
| 244 | auto self = scoped_actor{system()}; |
| 245 | return self->mail(open_atom_v, port, std::move(str), reuse) |
| 246 | .request(actor_handle(), infinite) |
| 247 | .receive(); |
| 248 | } |
| 249 | |
| 250 | expected<void> middleman::close(uint16_t port) { |
| 251 | auto self = scoped_actor{system()}; |