27#include <mstdlib/base/m_defs.h>
28#include <mstdlib/base/m_types.h>
29#include <mstdlib/io/m_io.h>
30#include <mstdlib/io/m_event.h>
342#include <mstdlib/io/m_dns.h>
511M_API M_bool
M_io_net_ipaddr_to_bin(
unsigned char *ipaddr_bin,
size_t ipaddr_bin_size,
const char *ipaddr_str,
size_t *ipaddr_bin_len);
524M_API M_bool
M_io_net_bin_to_ipaddr(
char *ipaddr_str,
size_t ipaddr_str_size,
const unsigned char *ipaddr_bin,
size_t ipaddr_bin_len);
struct M_dns M_dns_t
Definition: m_dns.h:43
M_bool M_io_net_set_nagle(M_io_t *io, M_bool nagle_enabled)
enum M_io_net_type M_io_net_type_t
Definition: m_io_net.h:340
const char * M_io_net_get_host(M_io_t *io)
unsigned short M_io_net_get_port(M_io_t *io)
M_uint64 M_io_net_time_dns_ms(M_io_t *io)
M_bool M_io_net_ipaddr_to_bin(unsigned char *ipaddr_bin, size_t ipaddr_bin_size, const char *ipaddr_str, size_t *ipaddr_bin_len)
enum M_io_net_type M_io_net_get_type(M_io_t *io)
char * M_io_net_get_fqdn(void)
M_io_net_type
Definition: m_io_net.h:335
unsigned short M_io_net_get_ephemeral_port(M_io_t *io)
M_io_error_t M_io_net_client_create(M_io_t **io_out, M_dns_t *dns, const char *host, unsigned short port, M_io_net_type_t type)
M_bool M_io_net_bin_to_ipaddr(char *ipaddr_str, size_t ipaddr_str_size, const unsigned char *ipaddr_bin, size_t ipaddr_bin_len)
M_uint64 M_io_net_time_connect_ms(M_io_t *io)
M_io_error_t M_io_net_server_create(M_io_t **io_out, unsigned short port, const char *bind_ip, M_io_net_type_t type)
M_bool M_io_net_set_keepalives(M_io_t *io, M_uint64 idle_time_s, M_uint64 retry_time_s, M_uint64 retry_cnt)
const char * M_io_net_get_ipaddr(M_io_t *io)
M_bool M_io_net_set_connect_timeout_ms(M_io_t *io, M_uint64 timeout_ms)
const char * M_io_net_get_server_ipaddr(M_io_t *io)
M_uint64 M_io_net_get_connect_timeout_ms(M_io_t *io)
@ M_IO_NET_ANY
Definition: m_io_net.h:336
@ M_IO_NET_IPV6
Definition: m_io_net.h:338
@ M_IO_NET_IPV4
Definition: m_io_net.h:337
enum M_io_error M_io_error_t
Definition: m_io.h:93
struct M_io M_io_t
Definition: m_io.h:59