diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-11-16 18:48:39 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-11-16 18:48:39 +0000 |
commit | 66fa9eb830939b33a268b24573f9fdf59850dac5 (patch) | |
tree | f520073b0832172588d8021184f8833548e08d5b /nuttx/examples/nettest/nettest-client.c | |
parent | d6100fb0fad57df531e0774793d188e899943852 (diff) | |
download | px4-nuttx-66fa9eb830939b33a268b24573f9fdf59850dac5.tar.gz px4-nuttx-66fa9eb830939b33a268b24573f9fdf59850dac5.tar.bz2 px4-nuttx-66fa9eb830939b33a268b24573f9fdf59850dac5.zip |
Basic server functionality: listen(), accept()
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@382 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/examples/nettest/nettest-client.c')
-rw-r--r-- | nuttx/examples/nettest/nettest-client.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nuttx/examples/nettest/nettest-client.c b/nuttx/examples/nettest/nettest-client.c index a38ff0049..cb086059c 100644 --- a/nuttx/examples/nettest/nettest-client.c +++ b/nuttx/examples/nettest/nettest-client.c @@ -57,12 +57,12 @@ void send_client(void) { struct sockaddr_in myaddr; char outbuf[SENDSIZE]; -#ifndef CONFIG_NETTEST_PERFORMANCE +#ifndef CONFIG_EXAMPLE_NETTEST_PERFORMANCE char inbuf[SENDSIZE]; #endif int sockfd; int nbytessent; -#ifndef CONFIG_NETTEST_PERFORMANCE +#ifndef CONFIG_EXAMPLE_NETTEST_PERFORMANCE int nbytesrecvd; #endif int ch; @@ -107,7 +107,7 @@ void send_client(void) } } -#ifdef CONFIG_NETTEST_PERFORMANCE +#ifdef CONFIG_EXAMPLE_NETTEST_PERFORMANCE /* Then receive messages forever */ for (;;) |