ark::net::tcp::sync namespace

contains apis that blocks until completion

Contents

Functions

auto connect(socket& f, const address& endpoint) -> result<void> noexcept
connect socket to the given endpoint
auto accept(acceptor& srv) -> result<socket> noexcept
accept a socket connection from the given acceptor
auto accept(acceptor& srv, address& endpoint) -> result<socket> noexcept
accept a socket connection from the given acceptor

Function documentation

result<void> ark::net::tcp::sync::connect(socket& f, const address& endpoint) noexcept

connect socket to the given endpoint

blocks until the operation is complete

result<socket> ark::net::tcp::sync::accept(acceptor& srv) noexcept

accept a socket connection from the given acceptor

blocks until the operation is complete

result<socket> ark::net::tcp::sync::accept(acceptor& srv, address& endpoint) noexcept

accept a socket connection from the given acceptor

Parameters
srv
endpoint out the address of accepted socket, on success

blocks until the operation is complete