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 2018-09-10 22:07:41 +03:00 committed by Cesanta Bot
parent 20f54059ad
commit ab035901f8
3 changed files with 4 additions and 4 deletions

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) {

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 {

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) {