mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-29 21:08:24 +00: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:
1 parent
20f54059ad
commit
ab035901f8
3 files changed
+4
-4
No files matched your search
+2
-2
@@ -3043,7 +3043,7 @@ void mg_if_can_send_cb(struct mg_connection *nc) {
|
|||||||
}
|
}
|
||||||
} else
|
} else
|
||||||
#endif
|
#endif
|
||||||
{
|
if (len > 0) {
|
||||||
if (nc->flags & MG_F_UDP) {
|
if (nc->flags & MG_F_UDP) {
|
||||||
n = nc->iface->vtable->udp_send(nc, buf, len);
|
n = nc->iface->vtable->udp_send(nc, buf, len);
|
||||||
} else {
|
} 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) {
|
static int mg_null_if_create_conn(struct mg_connection *c) {
|
||||||
(void) c;
|
(void) c;
|
||||||
return -1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void mg_null_if_destroy_conn(struct mg_connection *c) {
|
static void mg_null_if_destroy_conn(struct mg_connection *c) {
|
||||||
|
|||||||
+1
-1
@@ -734,7 +734,7 @@ void mg_if_can_send_cb(struct mg_connection *nc) {
|
|||||||
}
|
}
|
||||||
} else
|
} else
|
||||||
#endif
|
#endif
|
||||||
{
|
if (len > 0) {
|
||||||
if (nc->flags & MG_F_UDP) {
|
if (nc->flags & MG_F_UDP) {
|
||||||
n = nc->iface->vtable->udp_send(nc, buf, len);
|
n = nc->iface->vtable->udp_send(nc, buf, len);
|
||||||
} else {
|
} 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) {
|
static int mg_null_if_create_conn(struct mg_connection *c) {
|
||||||
(void) c;
|
(void) c;
|
||||||
return -1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void mg_null_if_destroy_conn(struct mg_connection *c) {
|
static void mg_null_if_destroy_conn(struct mg_connection *c) {
|
||||||
|
|||||||
Reference in new issue
Block a user