mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-14 19:03:20 +00:00
Mongoose TCP listener for ESP LWIP
PUBLISHED_FROM=e88b17d21ee78a4c2c1c4832db322e19b314206d
This commit is contained in:
1 parent
e46185068b
commit
cfee5c4fdb
2 files changed
+31
-28
No files matched your search
+5
-6
@@ -1044,10 +1044,11 @@ void mg_if_connect_cb(struct mg_connection *nc, int err);
|
||||
|
||||
/* Set up a listening TCP socket on a given address. rv = 0 -> ok. */
|
||||
int mg_if_listen_tcp(struct mg_connection *nc, union socket_address *sa);
|
||||
/* Deliver a new TCP connection. Returns != 0 in case on error (unable to
|
||||
* create connection, in which case interface state should be removed. */
|
||||
int mg_if_accept_tcp_cb(struct mg_connection *lc, sock_t sock,
|
||||
union socket_address *sa, size_t sa_len);
|
||||
/* Deliver a new TCP connection. Returns NULL in case on error (unable to
|
||||
* create connection, in which case interface state should be discarded. */
|
||||
struct mg_connection *mg_if_accept_tcp_cb(struct mg_connection *lc,
|
||||
union socket_address *sa,
|
||||
size_t sa_len);
|
||||
|
||||
/* Request that a "listening" UDP socket be created. */
|
||||
int mg_if_listen_udp(struct mg_connection *nc, union socket_address *sa);
|
||||
@@ -1075,8 +1076,6 @@ void mg_if_poll(struct mg_connection *nc, time_t now);
|
||||
/* Perform interface-related cleanup on connection before destruction. */
|
||||
void mg_if_destroy_conn(struct mg_connection *nc);
|
||||
|
||||
void mg_if_set_sock(struct mg_connection *nc, sock_t sock);
|
||||
|
||||
void mg_close_conn(struct mg_connection *nc);
|
||||
|
||||
#endif /* MG_NET_IF_HEADER_INCLUDED */
|
||||
|
||||
Reference in new issue
Block a user