Remove mg_mkpipe() leftovers

This commit is contained in:
Sergio R. Caprile 2023-10-10 18:16:02 -03:00
parent 36f6b805e3
commit b1c220e610
4 changed files with 0 additions and 14 deletions

View File

@ -5323,12 +5323,6 @@ void mg_tcpip_free(struct mg_tcpip_if *ifp) {
free((char *) ifp->tx.ptr); free((char *) ifp->tx.ptr);
} }
int mg_mkpipe(struct mg_mgr *m, mg_event_handler_t fn, void *d, bool udp) {
(void) m, (void) fn, (void) d, (void) udp;
MG_ERROR(("Not implemented"));
return -1;
}
static void send_syn(struct mg_connection *c) { static void send_syn(struct mg_connection *c) {
struct connstate *s = (struct connstate *) (c + 1); struct connstate *s = (struct connstate *) (c + 1);
uint32_t isn = mg_htonl((uint32_t) mg_ntohs(c->loc.port)); uint32_t isn = mg_htonl((uint32_t) mg_ntohs(c->loc.port));

View File

@ -1261,7 +1261,6 @@ bool mg_send(struct mg_connection *, const void *, size_t);
size_t mg_printf(struct mg_connection *, const char *fmt, ...); size_t mg_printf(struct mg_connection *, const char *fmt, ...);
size_t mg_vprintf(struct mg_connection *, const char *fmt, va_list *ap); size_t mg_vprintf(struct mg_connection *, const char *fmt, va_list *ap);
bool mg_aton(struct mg_str str, struct mg_addr *addr); bool mg_aton(struct mg_str str, struct mg_addr *addr);
int mg_mkpipe(struct mg_mgr *, mg_event_handler_t, void *, bool udp);
// These functions are used to integrate with custom network stacks // These functions are used to integrate with custom network stacks
struct mg_connection *mg_alloc_conn(struct mg_mgr *); struct mg_connection *mg_alloc_conn(struct mg_mgr *);

View File

@ -90,7 +90,6 @@ bool mg_send(struct mg_connection *, const void *, size_t);
size_t mg_printf(struct mg_connection *, const char *fmt, ...); size_t mg_printf(struct mg_connection *, const char *fmt, ...);
size_t mg_vprintf(struct mg_connection *, const char *fmt, va_list *ap); size_t mg_vprintf(struct mg_connection *, const char *fmt, va_list *ap);
bool mg_aton(struct mg_str str, struct mg_addr *addr); bool mg_aton(struct mg_str str, struct mg_addr *addr);
int mg_mkpipe(struct mg_mgr *, mg_event_handler_t, void *, bool udp);
// These functions are used to integrate with custom network stacks // These functions are used to integrate with custom network stacks
struct mg_connection *mg_alloc_conn(struct mg_mgr *); struct mg_connection *mg_alloc_conn(struct mg_mgr *);

View File

@ -981,12 +981,6 @@ void mg_tcpip_free(struct mg_tcpip_if *ifp) {
free((char *) ifp->tx.ptr); free((char *) ifp->tx.ptr);
} }
int mg_mkpipe(struct mg_mgr *m, mg_event_handler_t fn, void *d, bool udp) {
(void) m, (void) fn, (void) d, (void) udp;
MG_ERROR(("Not implemented"));
return -1;
}
static void send_syn(struct mg_connection *c) { static void send_syn(struct mg_connection *c) {
struct connstate *s = (struct connstate *) (c + 1); struct connstate *s = (struct connstate *) (c + 1);
uint32_t isn = mg_htonl((uint32_t) mg_ntohs(c->loc.port)); uint32_t isn = mg_htonl((uint32_t) mg_ntohs(c->loc.port));