MIDAS
Loading...
Searching...
No Matches
mg_iface_vtable Struct Reference

#include <mongoose614.h>

Public Attributes

void(* init )(struct mg_iface *iface)
 
void(* free )(struct mg_iface *iface)
 
void(* add_conn )(struct mg_connection *nc)
 
void(* remove_conn )(struct mg_connection *nc)
 
time_t(* poll )(struct mg_iface *iface, int timeout_ms)
 
int(* listen_tcp )(struct mg_connection *nc, union socket_address *sa)
 
int(* listen_udp )(struct mg_connection *nc, union socket_address *sa)
 
void(* connect_tcp )(struct mg_connection *nc, const union socket_address *sa)
 
void(* connect_udp )(struct mg_connection *nc)
 
int(* tcp_send )(struct mg_connection *nc, const void *buf, size_t len)
 
int(* udp_send )(struct mg_connection *nc, const void *buf, size_t len)
 
int(* tcp_recv )(struct mg_connection *nc, void *buf, size_t len)
 
int(* udp_recv )(struct mg_connection *nc, void *buf, size_t len, union socket_address *sa, size_t *sa_len)
 
int(* create_conn )(struct mg_connection *nc)
 
void(* destroy_conn )(struct mg_connection *nc)
 
void(* sock_set )(struct mg_connection *nc, sock_t sock)
 
void(* get_conn_addr )(struct mg_connection *nc, int remote, union socket_address *sa)
 

Detailed Description

Definition at line 3663 of file mongoose614.h.

Member Data Documentation

◆ add_conn

void(* mg_iface_vtable::add_conn)(struct mg_connection *nc)

Definition at line 3666 of file mongoose614.h.

◆ connect_tcp

void(* mg_iface_vtable::connect_tcp)(struct mg_connection *nc, const union socket_address *sa)

Definition at line 3676 of file mongoose614.h.

◆ connect_udp

void(* mg_iface_vtable::connect_udp)(struct mg_connection *nc)

Definition at line 3678 of file mongoose614.h.

◆ create_conn

int(* mg_iface_vtable::create_conn)(struct mg_connection *nc)

Definition at line 3689 of file mongoose614.h.

◆ destroy_conn

void(* mg_iface_vtable::destroy_conn)(struct mg_connection *nc)

Definition at line 3691 of file mongoose614.h.

◆ free

void(* mg_iface_vtable::free)(struct mg_iface *iface)

Definition at line 3665 of file mongoose614.h.

◆ get_conn_addr

void(* mg_iface_vtable::get_conn_addr)(struct mg_connection *nc, int remote, union socket_address *sa)

Definition at line 3697 of file mongoose614.h.

◆ init

void(* mg_iface_vtable::init)(struct mg_iface *iface)

Definition at line 3664 of file mongoose614.h.

◆ listen_tcp

int(* mg_iface_vtable::listen_tcp)(struct mg_connection *nc, union socket_address *sa)

Definition at line 3671 of file mongoose614.h.

◆ listen_udp

int(* mg_iface_vtable::listen_udp)(struct mg_connection *nc, union socket_address *sa)

Definition at line 3673 of file mongoose614.h.

◆ poll

time_t(* mg_iface_vtable::poll)(struct mg_iface *iface, int timeout_ms)

Definition at line 3668 of file mongoose614.h.

◆ remove_conn

void(* mg_iface_vtable::remove_conn)(struct mg_connection *nc)

Definition at line 3667 of file mongoose614.h.

◆ sock_set

void(* mg_iface_vtable::sock_set)(struct mg_connection *nc, sock_t sock)

Definition at line 3694 of file mongoose614.h.

◆ tcp_recv

int(* mg_iface_vtable::tcp_recv)(struct mg_connection *nc, void *buf, size_t len)

Definition at line 3684 of file mongoose614.h.

◆ tcp_send

int(* mg_iface_vtable::tcp_send)(struct mg_connection *nc, const void *buf, size_t len)

Definition at line 3681 of file mongoose614.h.

◆ udp_recv

int(* mg_iface_vtable::udp_recv)(struct mg_connection *nc, void *buf, size_t len, union socket_address *sa, size_t *sa_len)

Definition at line 3685 of file mongoose614.h.

◆ udp_send

int(* mg_iface_vtable::udp_send)(struct mg_connection *nc, const void *buf, size_t len)

Definition at line 3682 of file mongoose614.h.


The documentation for this struct was generated from the following files: