summaryrefslogtreecommitdiff
path: root/nuttx/examples/nettest/nettest-server.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2007-11-16 18:48:39 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2007-11-16 18:48:39 +0000
commit66fa9eb830939b33a268b24573f9fdf59850dac5 (patch)
treef520073b0832172588d8021184f8833548e08d5b /nuttx/examples/nettest/nettest-server.c
parentd6100fb0fad57df531e0774793d188e899943852 (diff)
downloadpx4-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-server.c')
-rw-r--r--nuttx/examples/nettest/nettest-server.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/nuttx/examples/nettest/nettest-server.c b/nuttx/examples/nettest/nettest-server.c
index 98b1cc98f..d00498f4e 100644
--- a/nuttx/examples/nettest/nettest-server.c
+++ b/nuttx/examples/nettest/nettest-server.c
@@ -63,7 +63,7 @@ void recv_server(void)
int acceptsd;
socklen_t addrlen;
int nbytesread;
-#ifndef CONFIG_NETTEST_PERFORMANCE
+#ifndef CONFIG_EXAMPLE_NETTEST_PERFORMANCE
int totalbytesread;
int nbytessent;
int ch;
@@ -133,7 +133,7 @@ void recv_server(void)
}
#endif
-#ifdef CONFIG_NETTEST_PERFORMANCE
+#ifdef CONFIG_EXAMPLE_NETTEST_PERFORMANCE
/* Then receive data forever */
for (;;)
@@ -194,7 +194,7 @@ void recv_server(void)
}
}
-#ifdef CONFIG_NETTEST_HOST
+#ifdef CONFIG_EXAMPLE_NETTEST_HOST
/* At present, data received by the target before it is completed the
* the write opertion and started the read operation results in a failure
* (the data is not received, but it is ACKed). This will have to be