Skip to content

Commit

Permalink
ISM43XXX networking support (TCP, UDP client)
Browse files Browse the repository at this point in the history
Listeners still TODO

CL: ISM43XXX networking support (TCP, UDP client)

PUBLISHED_FROM=b58ba88b9e6bd7b55ccb607d0b69cea98cb52fa5
  • Loading branch information
Deomid Ryabkov authored and cesantabot committed Sep 11, 2018
1 parent 20f5405 commit ab03590
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions mongoose.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion src/mg_net.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion src/mg_net_if_null.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit ab03590

Please sign in to comment.