Add a compile test for the tcp-socket example
This commit is contained in:
parent
ca5652d981
commit
367eed96f4
|
@ -29,7 +29,7 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "contiki.h"
|
#include "contiki-net.h"
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
@ -106,7 +106,7 @@ PROCESS_THREAD(tcp_server_process, ev, data)
|
||||||
int len, tosend;
|
int len, tosend;
|
||||||
#define MIN(a,b) ((a)<(b)?(a):(b))
|
#define MIN(a,b) ((a)<(b)?(a):(b))
|
||||||
tosend = MIN(bytes_to_send, sizeof(outputbuf));
|
tosend = MIN(bytes_to_send, sizeof(outputbuf));
|
||||||
len = tcp_socket_send(&socket, "", tosend);
|
len = tcp_socket_send(&socket, (uint8_t *)"", tosend);
|
||||||
bytes_to_send -= len;
|
bytes_to_send -= len;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -27,6 +27,7 @@ sky-ip/sky \
|
||||||
sky-shell/sky \
|
sky-shell/sky \
|
||||||
sky-shell-exec/sky \
|
sky-shell-exec/sky \
|
||||||
sky-shell-webserver/sky \
|
sky-shell-webserver/sky \
|
||||||
|
tcp-socket/minimal-net \
|
||||||
telnet-server/minimal-net \
|
telnet-server/minimal-net \
|
||||||
webserver/minimal-net \
|
webserver/minimal-net \
|
||||||
webserver-ipv6/exp5438 \
|
webserver-ipv6/exp5438 \
|
||||||
|
|
Loading…
Reference in a new issue