class
socketdenotes a tcp socket
Contents
will be available for io after a successful connect operation, sync or async, or if the socket is retrieved by accepting from an ark::
Base classes
- class ark::nonseekable_fd
- An io object, denotes a non lseek()-able fd as defined in kernel.
Public static functions
Constructors, destructors, conversion operators
- socket(int fd_int) protected
- constructs from int fildes
Function documentation
static result<socket> ark:: net:: tcp:: socket:: create(bool use_ipv6 = false) noexcept
constructs a socket available for connecting
Parameters | |
---|---|
use_ipv6 in | if set to true, associated connect should use ark:: |
static result<socket> ark:: net:: tcp:: socket:: create(async_ context& ctx,
bool use_ipv6 = false) noexcept
constructs a socket available for connecting
Parameters | |
---|---|
ctx in | bound to this ark:: |
use_ipv6 in | if set to true, associated connect should use ark:: |
ark:: net:: tcp:: socket:: socket(int fd_int) protected
constructs from int fildes
Parameters | |
---|---|
fd_int in | must be an fildes opened by socket(2) |