mirror of
https://github.com/cesanta/mongoose.git
synced 2025-06-07 09:27:05 +08:00
ISM43XXX networking support (TCP, UDP client)
Listeners still TODO CL: ISM43XXX networking support (TCP, UDP client) PUBLISHED_FROM=b58ba88b9e6bd7b55ccb607d0b69cea98cb52fa5
This commit is contained in:
parent
20f54059ad
commit
ab035901f8
@ -3043,7 +3043,7 @@ void mg_if_can_send_cb(struct mg_connection *nc) {
|
||||
}
|
||||
} else
|
||||
#endif
|
||||
{
|
||||
if (len > 0) {
|
||||
if (nc->flags & MG_F_UDP) {
|
||||
n = nc->iface->vtable->udp_send(nc, buf, len);
|
||||
} else {
|
||||
@ -3673,7 +3673,7 @@ int mg_null_if_udp_recv(struct mg_connection *c, void *buf, size_t len,
|
||||
|
||||
static int mg_null_if_create_conn(struct mg_connection *c) {
|
||||
(void) c;
|
||||
return -1;
|
||||
return 1;
|
||||
}
|
||||
|
||||
static void mg_null_if_destroy_conn(struct mg_connection *c) {
|
||||
|
@ -734,7 +734,7 @@ void mg_if_can_send_cb(struct mg_connection *nc) {
|
||||
}
|
||||
} else
|
||||
#endif
|
||||
{
|
||||
if (len > 0) {
|
||||
if (nc->flags & MG_F_UDP) {
|
||||
n = nc->iface->vtable->udp_send(nc, buf, len);
|
||||
} else {
|
||||
|
@ -75,7 +75,7 @@ int mg_null_if_udp_recv(struct mg_connection *c, void *buf, size_t len,
|
||||
|
||||
static int mg_null_if_create_conn(struct mg_connection *c) {
|
||||
(void) c;
|
||||
return -1;
|
||||
return 1;
|
||||
}
|
||||
|
||||
static void mg_null_if_destroy_conn(struct mg_connection *c) {
|
||||
|
Loading…
Reference in New Issue
Block a user