diff options
Diffstat (limited to 'nuttx/examples')
-rw-r--r-- | nuttx/examples/README.txt | 6 | ||||
-rw-r--r-- | nuttx/examples/udp/Makefile | 2 | ||||
-rw-r--r-- | nuttx/examples/udp/udp-client.c | 2 |
3 files changed, 8 insertions, 2 deletions
diff --git a/nuttx/examples/README.txt b/nuttx/examples/README.txt index 6ef65e924..0ba708925 100644 --- a/nuttx/examples/README.txt +++ b/nuttx/examples/README.txt @@ -61,3 +61,9 @@ examples/netttest This is a simple network test for verifying client- and server- functionality in a TCP/IP connection. +examples/udp +^^^^^^^^^^^^ + + This is a simple network test for verifying client- and server- + functionality over UDP. + diff --git a/nuttx/examples/udp/Makefile b/nuttx/examples/udp/Makefile index 6fec19147..3dcc57213 100644 --- a/nuttx/examples/udp/Makefile +++ b/nuttx/examples/udp/Makefile @@ -58,7 +58,7 @@ TARG_BIN = lib$(CONFIG_EXAMPLE)$(LIBEXT) HOSTCFLAGS += -DCONFIG_EXAMPLE_UDP_HOST=1 ifeq ($(CONFIG_EXAMPLE_UDP_SERVER),y) HOSTCFLAGS += -DCONFIG_EXAMPLE_UDP_SERVER=1 \ - -DCONFIG_EXAMPLE_UDP_CLIENTIP="$(CONFIG_EXAMPLE_UDP_CLIENTIP)" + -DCONFIG_EXAMPLE_UDP_SERVERIP="$(CONFIG_EXAMPLE_UDP_SERVERIP)" endif HOST_SRCS = host.c diff --git a/nuttx/examples/udp/udp-client.c b/nuttx/examples/udp/udp-client.c index 8ea9cffb6..545a3a6c3 100644 --- a/nuttx/examples/udp/udp-client.c +++ b/nuttx/examples/udp/udp-client.c @@ -107,7 +107,7 @@ void send_client(void) message("client: %d. Sending %d bytes\n", offset, SENDSIZE); nbytes = sendto(sockfd, outbuf, SENDSIZE, 0, (struct sockaddr*)&server, sizeof(struct sockaddr_in)); - message("client: %d. Sent %d bytes\n", nbytes); + message("client: %d. Sent %d bytes\n", offset, nbytes); if (nbytes < 0) { |