diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2013-10-25 15:48:11 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2013-10-25 15:48:11 -0600 |
commit | 9830c45105339840b3fb1b67687567d5a97b03d4 (patch) | |
tree | fa9f1253634ccfd3d13ae3e3a5eef2b17e9b5cb8 /apps/examples/cc3000/telnetd_daemon.c | |
parent | 9dc1c932eb08d1909fdfd56bf55be7ec9c1b3498 (diff) | |
download | nuttx-9830c45105339840b3fb1b67687567d5a97b03d4.tar.gz nuttx-9830c45105339840b3fb1b67687567d5a97b03d4.tar.bz2 nuttx-9830c45105339840b3fb1b67687567d5a97b03d4.zip |
apps/examples/cc3000 updated by David Sidrane
Diffstat (limited to 'apps/examples/cc3000/telnetd_daemon.c')
-rw-r--r-- | apps/examples/cc3000/telnetd_daemon.c | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/apps/examples/cc3000/telnetd_daemon.c b/apps/examples/cc3000/telnetd_daemon.c index 353a63404..a149f7abe 100644 --- a/apps/examples/cc3000/telnetd_daemon.c +++ b/apps/examples/cc3000/telnetd_daemon.c @@ -70,7 +70,7 @@ * Public Data ****************************************************************************/ -/* This structure is used to passed information to telnet daemon when it +/* This structure is used to passed information to telnet daemon when it * started. */ @@ -159,15 +159,8 @@ static int telnetd_daemon(int argc, char *argv[]) ndbg("listen failure %d\n", errno); goto errout_with_socket; } -#if defined(CC3000_SOCKETS) - short nonBlocking=SOCK_OFF; - if (setsockopt(listensd, SOL_SOCKET, SOCKOPT_ACCEPT_NONBLOCK, &nonBlocking, sizeof(nonBlocking)) < 0) - { - ndbg("setsockopt failure %d\n", errno); - goto errout_with_socket; - } -#endif - /* Now go silent. Only the lldbg family of debug functions should + + /* Now go silent. Only the lldbg family of debug functions should * be used after this point because these do not depend on stdout * being available. */ @@ -259,10 +252,6 @@ static int telnetd_daemon(int argc, char *argv[]) close(0); close(1); close(2); -#if defined(CC3000_SOCKETS_ST) - /* We can not do more then one accept in Single treaded version */ - break; -#endif } errout_with_acceptsd: |