mirror of
https://github.com/cesanta/mongoose.git
synced 2024-12-27 23:21:04 +08:00
Remove mg_mkpipe() leftovers
This commit is contained in:
parent
36f6b805e3
commit
b1c220e610
@ -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));
|
||||||
|
@ -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 *);
|
||||||
|
@ -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 *);
|
||||||
|
@ -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));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user