ISM43XXX networking support (TCP, UDP client)

Listeners still TODO

CL: ISM43XXX networking support (TCP, UDP client)

PUBLISHED_FROM=b58ba88b9e6bd7b55ccb607d0b69cea98cb52fa5
This commit is contained in:
Deomid Ryabkov authored and Cesanta Bot committed 2018-09-11 06:34:08 +00:00
1 parent 20f54059ad
commit ab035901f8
3 files changed
+4 -4

No files matched your search

+2 -2
View File
@@ -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) {
+1 -1
View File
@@ -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 {
+1 -1
View File
@@ -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) {