Commit ab035901 authored by Deomid Ryabkov's avatar Deomid Ryabkov Committed by Cesanta Bot

ISM43XXX networking support (TCP, UDP client)

Listeners still TODO

CL: ISM43XXX networking support (TCP, UDP client)

PUBLISHED_FROM=b58ba88b9e6bd7b55ccb607d0b69cea98cb52fa5
parent 20f54059
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment