Move all socket-related files from net/ to net/socket. Move net/net.h to net/socket/socket.h

This commit is contained in:
Gregory Nutt
2014-06-28 17:25:18 -06:00
parent 64c8dba8c4
commit 76fa58ee00
52 changed files with 97 additions and 93 deletions
-2
View File
@@ -48,8 +48,6 @@
#include <nuttx/net/netconfig.h> #include <nuttx/net/netconfig.h>
#include <nuttx/net/arp.h> #include <nuttx/net/arp.h>
#include "net.h"
#ifdef CONFIG_NET_ARP #ifdef CONFIG_NET_ARP
/**************************************************************************** /****************************************************************************
-2
View File
@@ -58,8 +58,6 @@
#include "uip/uip.h" #include "uip/uip.h"
#include "icmp/icmp.h" #include "icmp/icmp.h"
#include "net.h"
/**************************************************************************** /****************************************************************************
* Pre-processor Definitions * Pre-processor Definitions
****************************************************************************/ ****************************************************************************/
+1 -1
View File
@@ -46,7 +46,7 @@
#include <nuttx/net/net.h> #include <nuttx/net/net.h>
#include <nuttx/net/arp.h> #include <nuttx/net/arp.h>
#include "net.h" #include "socket/socket.h"
#include "netdev/netdev.h" #include "netdev/netdev.h"
#include "tcp/tcp.h" #include "tcp/tcp.h"
#include "udp/udp.h" #include "udp/udp.h"
-1
View File
@@ -52,7 +52,6 @@
#include <net/ethernet.h> #include <net/ethernet.h>
#include <nuttx/net/netdev.h> #include <nuttx/net/netdev.h>
#include "net.h"
#include "netdev/netdev.h" #include "netdev/netdev.h"
/**************************************************************************** /****************************************************************************
-1
View File
@@ -45,7 +45,6 @@
#include <nuttx/net/netdev.h> #include <nuttx/net/netdev.h>
#include "net.h"
#include "netdev/netdev.h" #include "netdev/netdev.h"
/**************************************************************************** /****************************************************************************
-1
View File
@@ -47,7 +47,6 @@
#include <nuttx/net/netdev.h> #include <nuttx/net/netdev.h>
#include "net.h"
#include "netdev/netdev.h" #include "netdev/netdev.h"
#include "route/route.h" #include "route/route.h"
-1
View File
@@ -45,7 +45,6 @@
#include <nuttx/net/netdev.h> #include <nuttx/net/netdev.h>
#include "net.h"
#include "netdev/netdev.h" #include "netdev/netdev.h"
/**************************************************************************** /****************************************************************************
-1
View File
@@ -44,7 +44,6 @@
#include <nuttx/net/net.h> #include <nuttx/net/net.h>
#include <nuttx/net/netdev.h> #include <nuttx/net/netdev.h>
#include "net.h"
#include "netdev/netdev.h" #include "netdev/netdev.h"
/**************************************************************************** /****************************************************************************
+1 -1
View File
@@ -63,7 +63,7 @@
# include "nuttx/net/igmp.h" # include "nuttx/net/igmp.h"
#endif #endif
#include "net.h" #include "socket/socket.h"
#include "netdev/netdev.h" #include "netdev/netdev.h"
#include "route/route.h" #include "route/route.h"
-1
View File
@@ -52,7 +52,6 @@
#include <net/ethernet.h> #include <net/ethernet.h>
#include <nuttx/net/netdev.h> #include <nuttx/net/netdev.h>
#include "net.h"
#include "netdev/netdev.h" #include "netdev/netdev.h"
/**************************************************************************** /****************************************************************************
-1
View File
@@ -47,7 +47,6 @@
#include <nuttx/net/netdev.h> #include <nuttx/net/netdev.h>
#include "net.h"
#include "netdev/netdev.h" #include "netdev/netdev.h"
/**************************************************************************** /****************************************************************************
-1
View File
@@ -48,7 +48,6 @@
#include <assert.h> #include <assert.h>
#include <errno.h> #include <errno.h>
#include "net.h"
#include "netdev/netdev.h" #include "netdev/netdev.h"
/**************************************************************************** /****************************************************************************
-1
View File
@@ -47,7 +47,6 @@
#include <nuttx/net/netdev.h> #include <nuttx/net/netdev.h>
#include "net.h"
#include "netdev/netdev.h" #include "netdev/netdev.h"
/**************************************************************************** /****************************************************************************
-1
View File
@@ -52,7 +52,6 @@
#include <net/ethernet.h> #include <net/ethernet.h>
#include <nuttx/net/netdev.h> #include <nuttx/net/netdev.h>
#include "net.h"
#include "netdev/netdev.h" #include "netdev/netdev.h"
/**************************************************************************** /****************************************************************************
+1 -1
View File
@@ -55,7 +55,7 @@
#include <nuttx/net/netdev.h> #include <nuttx/net/netdev.h>
#include <nuttx/net/pkt.h> #include <nuttx/net/pkt.h>
#include "net.h" #include "socket/socket.h"
#include "netdev/netdev.h" #include "netdev/netdev.h"
#include "uip/uip.h" #include "uip/uip.h"
#include "pkt/pkt.h" #include "pkt/pkt.h"
-1
View File
@@ -46,7 +46,6 @@
#include <arch/irq.h> #include <arch/irq.h>
#include "net.h"
#include "route/route.h" #include "route/route.h"
#if defined(CONFIG_NET) && defined(CONFIG_NET_ROUTE) #if defined(CONFIG_NET) && defined(CONFIG_NET_ROUTE)
-1
View File
@@ -45,7 +45,6 @@
#include <arch/irq.h> #include <arch/irq.h>
#include "net.h"
#include "route/route.h" #include "route/route.h"
#if defined(CONFIG_NET) && defined(CONFIG_NET_ROUTE) #if defined(CONFIG_NET) && defined(CONFIG_NET_ROUTE)
-1
View File
@@ -43,7 +43,6 @@
#include <string.h> #include <string.h>
#include <errno.h> #include <errno.h>
#include "net.h"
#include "route/route.h" #include "route/route.h"
#if defined(CONFIG_NET) && defined(CONFIG_NET_ROUTE) #if defined(CONFIG_NET) && defined(CONFIG_NET_ROUTE)
-1
View File
@@ -44,7 +44,6 @@
#include <arch/irq.h> #include <arch/irq.h>
#include "net.h"
#include "route/route.h" #include "route/route.h"
#if defined(CONFIG_NET) && defined(CONFIG_NET_ROUTE) #if defined(CONFIG_NET) && defined(CONFIG_NET_ROUTE)
-1
View File
@@ -43,7 +43,6 @@
#include <string.h> #include <string.h>
#include <errno.h> #include <errno.h>
#include "net.h"
#include "route/route.h" #include "route/route.h"
#if defined(CONFIG_NET) && defined(CONFIG_NET_ROUTE) #if defined(CONFIG_NET) && defined(CONFIG_NET_ROUTE)
-1
View File
@@ -45,7 +45,6 @@
#include <nuttx/net/netdev.h> #include <nuttx/net/netdev.h>
#include "net.h"
#include "netdev/netdev.h" #include "netdev/netdev.h"
#include "route/route.h" #include "route/route.h"
+1 -1
View File
@@ -50,7 +50,7 @@ endif
ifeq ($(CONFIG_NET_SOCKOPTS),y) ifeq ($(CONFIG_NET_SOCKOPTS),y)
SOCK_CSRCS += setsockopt.c getsockopt.c SOCK_CSRCS += setsockopt.c getsockopt.c
ifneq ($(CONFIG_DISABLE_CLOCK),y) ifneq ($(CONFIG_DISABLE_CLOCK),y)
SOCK_CSRCS += net_timeo.c net_timeval2dsec.c SOCK_CSRCS += net_timeo.c
endif endif
endif endif
+2 -2
View File
@@ -1,5 +1,5 @@
/**************************************************************************** /****************************************************************************
* net/accept.c * net/socket/accept.c
* *
* Copyright (C) 2007-2012 Gregory Nutt. All rights reserved. * Copyright (C) 2007-2012 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org> * Author: Gregory Nutt <gnutt@nuttx.org>
@@ -53,7 +53,7 @@
#include <nuttx/net/tcp.h> #include <nuttx/net/tcp.h>
#include "net.h" #include "socket/socket.h"
/**************************************************************************** /****************************************************************************
* Definitions * Definitions
+2 -2
View File
@@ -1,5 +1,5 @@
/**************************************************************************** /****************************************************************************
* net/bind.c * net/socket/bind.c
* *
* Copyright (C) 2007-2009, 2012, 2014 Gregory Nutt. All rights reserved. * Copyright (C) 2007-2009, 2012, 2014 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org> * Author: Gregory Nutt <gnutt@nuttx.org>
@@ -53,7 +53,7 @@
#include <nuttx/net/udp.h> #include <nuttx/net/udp.h>
#include <nuttx/net/pkt.h> #include <nuttx/net/pkt.h>
#include "net.h" #include "socket/socket.h"
#include "netdev/netdev.h" #include "netdev/netdev.h"
#include "tcp/tcp.h" #include "tcp/tcp.h"
#include "udp/udp.h" #include "udp/udp.h"
+2 -2
View File
@@ -1,5 +1,5 @@
/**************************************************************************** /****************************************************************************
* net/connect.c * net/socket/connect.c
* *
* Copyright (C) 2007-2012 Gregory Nutt. All rights reserved. * Copyright (C) 2007-2012 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org> * Author: Gregory Nutt <gnutt@nuttx.org>
@@ -52,7 +52,7 @@
#include <nuttx/net/tcp.h> #include <nuttx/net/tcp.h>
#include <nuttx/net/udp.h> #include <nuttx/net/udp.h>
#include "net.h" #include "socket/socket.h"
#include "uip/uip.h" #include "uip/uip.h"
#include "tcp/tcp.h" #include "tcp/tcp.h"
#include "udp/udp.h" #include "udp/udp.h"
@@ -1,5 +1,5 @@
/**************************************************************************** /****************************************************************************
* net/getsockname.c * net/socket/getsockname.c
* *
* Copyright (C) 2011-2012 Gregory Nutt. All rights reserved. * Copyright (C) 2011-2012 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org> * Author: Gregory Nutt <gnutt@nuttx.org>
@@ -50,7 +50,7 @@
#include <nuttx/net/tcp.h> #include <nuttx/net/tcp.h>
#include <nuttx/net/udp.h> #include <nuttx/net/udp.h>
#include "net.h" #include "socket/socket.h"
#include "netdev/netdev.h" #include "netdev/netdev.h"
#ifdef CONFIG_NET #ifdef CONFIG_NET
+2 -2
View File
@@ -1,5 +1,5 @@
/**************************************************************************** /****************************************************************************
* net/getsockopt.c * net/socket/getsockopt.c
* *
* Copyright (C) 2007-2009, 2012 Gregory Nutt. All rights reserved. * Copyright (C) 2007-2009, 2012 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org> * Author: Gregory Nutt <gnutt@nuttx.org>
@@ -44,7 +44,7 @@
#include <sys/socket.h> #include <sys/socket.h>
#include <errno.h> #include <errno.h>
#include "net.h" #include "socket/socket.h"
#include "utils/utils.h" #include "utils/utils.h"
/**************************************************************************** /****************************************************************************
+2 -2
View File
@@ -1,5 +1,5 @@
/**************************************************************************** /****************************************************************************
* net/listen.c * net/socket/listen.c
* *
* Copyright (C) 2007-2009 Gregory Nutt. All rights reserved. * Copyright (C) 2007-2009 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org> * Author: Gregory Nutt <gnutt@nuttx.org>
@@ -46,7 +46,7 @@
#include <nuttx/net/tcp.h> #include <nuttx/net/tcp.h>
#include "net.h" #include "socket/socket.h"
/**************************************************************************** /****************************************************************************
* Global Functions * Global Functions
@@ -1,5 +1,5 @@
/**************************************************************************** /****************************************************************************
* net/net_checksd.c * net/socket/net_checksd.c
* *
* Copyright (C) 2011 Gregory Nutt. All rights reserved. * Copyright (C) 2011 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org> * Author: Gregory Nutt <gnutt@nuttx.org>
@@ -45,7 +45,7 @@
#include <errno.h> #include <errno.h>
#include <debug.h> #include <debug.h>
#include "net.h" #include "socket/socket.h"
/**************************************************************************** /****************************************************************************
* Global Functions * Global Functions
+2 -2
View File
@@ -1,5 +1,5 @@
/**************************************************************************** /****************************************************************************
* net/net_clone.c * net/socket/net_clone.c
* *
* Copyright (C) 2009, 2011-2013 Gregory Nutt. All rights reserved. * Copyright (C) 2009, 2011-2013 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org> * Author: Gregory Nutt <gnutt@nuttx.org>
@@ -48,7 +48,7 @@
#include <nuttx/net/tcp.h> #include <nuttx/net/tcp.h>
#include <nuttx/net/udp.h> #include <nuttx/net/udp.h>
#include "net.h" #include "socket/socket.h"
/**************************************************************************** /****************************************************************************
* Global Functions * Global Functions
+2 -2
View File
@@ -1,5 +1,5 @@
/**************************************************************************** /****************************************************************************
* net/net_close.c * net/socket/net_close.c
* *
* Copyright (C) 2007-2014 Gregory Nutt. All rights reserved. * Copyright (C) 2007-2014 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org> * Author: Gregory Nutt <gnutt@nuttx.org>
@@ -57,7 +57,7 @@
# include <nuttx/clock.h> # include <nuttx/clock.h>
#endif #endif
#include "net.h" #include "socket/socket.h"
#include "netdev/netdev.h" #include "netdev/netdev.h"
#include "uip/uip.h" #include "uip/uip.h"
#include "pkt/pkt.h" #include "pkt/pkt.h"
+2 -2
View File
@@ -1,5 +1,5 @@
/**************************************************************************** /****************************************************************************
* net/net_dup.c * net/socket/net_dup.c
* *
* Copyright (C) 2009 Gregory Nutt. All rights reserved. * Copyright (C) 2009 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org> * Author: Gregory Nutt <gnutt@nuttx.org>
@@ -44,7 +44,7 @@
#include <errno.h> #include <errno.h>
#include <debug.h> #include <debug.h>
#include "net.h" #include "socket/socket.h"
#if defined(CONFIG_NET) && CONFIG_NSOCKET_DESCRIPTORS > 0 #if defined(CONFIG_NET) && CONFIG_NSOCKET_DESCRIPTORS > 0
+2 -2
View File
@@ -1,5 +1,5 @@
/**************************************************************************** /****************************************************************************
* net/net_dup2.c * net/socket/net_dup2.c
* *
* Copyright (C) 2009, 2011 Gregory Nutt. All rights reserved. * Copyright (C) 2009, 2011 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org> * Author: Gregory Nutt <gnutt@nuttx.org>
@@ -44,7 +44,7 @@
#include <errno.h> #include <errno.h>
#include <debug.h> #include <debug.h>
#include "net.h" #include "socket/socket.h"
#if defined(CONFIG_NET) && CONFIG_NSOCKET_DESCRIPTORS > 0 #if defined(CONFIG_NET) && CONFIG_NSOCKET_DESCRIPTORS > 0
@@ -1,5 +1,5 @@
/**************************************************************************** /****************************************************************************
* net/net_monitor.c * net/socket/net_monitor.c
* *
* Copyright (C) 2007-2013 Gregory Nutt. All rights reserved. * Copyright (C) 2007-2013 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org> * Author: Gregory Nutt <gnutt@nuttx.org>
@@ -46,7 +46,7 @@
#include <nuttx/net/tcp.h> #include <nuttx/net/tcp.h>
#include "net.h" #include "socket/socket.h"
#include "uip/uip.h" #include "uip/uip.h"
/**************************************************************************** /****************************************************************************
+2 -2
View File
@@ -1,5 +1,5 @@
/**************************************************************************** /****************************************************************************
* net/net_poll.c * net/socket/net_poll.c
* *
* Copyright (C) 2008-2009, 2011-2014 Gregory Nutt. All rights reserved. * Copyright (C) 2008-2009, 2011-2014 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org> * Author: Gregory Nutt <gnutt@nuttx.org>
@@ -58,7 +58,7 @@
#include <uip/uip.h> #include <uip/uip.h>
#include "net.h" #include "socket/socket.h"
/**************************************************************************** /****************************************************************************
* Pre-processor Definitions * Pre-processor Definitions
@@ -1,5 +1,5 @@
/**************************************************************************** /****************************************************************************
* net/net_sendfile.c * net/socket/net_sendfile.c
* *
* Copyright (C) 2013 UVC Ingenieure. All rights reserved. * Copyright (C) 2013 UVC Ingenieure. All rights reserved.
* Copyright (C) 2007-2013 Gregory Nutt. All rights reserved. * Copyright (C) 2007-2013 Gregory Nutt. All rights reserved.
@@ -61,7 +61,7 @@
#include <nuttx/net/arp.h> #include <nuttx/net/arp.h>
#include <nuttx/net/netdev.h> #include <nuttx/net/netdev.h>
#include "net.h" #include "socket/socket.h"
#include "netdev/netdev.h" #include "netdev/netdev.h"
#include "uip/uip.h" #include "uip/uip.h"
@@ -1,5 +1,5 @@
/**************************************************************************** /****************************************************************************
* net/net_sockets.c * net/socket/net_sockets.c
* *
* Copyright (C) 2007-2009, 2011-2014 Gregory Nutt. All rights reserved. * Copyright (C) 2007-2009, 2011-2014 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org> * Author: Gregory Nutt <gnutt@nuttx.org>
@@ -51,7 +51,7 @@
#include <nuttx/net/net.h> #include <nuttx/net/net.h>
#include <nuttx/kmalloc.h> #include <nuttx/kmalloc.h>
#include "net.h" #include "socket/socket.h"
/**************************************************************************** /****************************************************************************
* Pre-processor Definitions * Pre-processor Definitions
+2 -2
View File
@@ -1,5 +1,5 @@
/**************************************************************************** /****************************************************************************
* net/net_timeo.c * net/socket/net_timeo.c
* *
* Copyright (C) 2007-2009, 2011-2012 Gregory Nutt. All rights reserved. * Copyright (C) 2007-2009, 2011-2012 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org> * Author: Gregory Nutt <gnutt@nuttx.org>
@@ -45,7 +45,7 @@
#include <nuttx/clock.h> #include <nuttx/clock.h>
#include "net.h" #include "socket/socket.h"
/**************************************************************************** /****************************************************************************
* Global Functions * Global Functions
+2 -2
View File
@@ -1,5 +1,5 @@
/**************************************************************************** /****************************************************************************
* net/net_vfcntl.c * net/socket/net_vfcntl.c
* *
* Copyright (C) 2009, 2012-2014 Gregory Nutt. All rights reserved. * Copyright (C) 2009, 2012-2014 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org> * Author: Gregory Nutt <gnutt@nuttx.org>
@@ -47,7 +47,7 @@
#include <arch/irq.h> #include <arch/irq.h>
#include <nuttx/net/net.h> #include <nuttx/net/net.h>
#include "net.h" #include "socket/socket.h"
#if defined(CONFIG_NET) && CONFIG_NSOCKET_DESCRIPTORS > 0 #if defined(CONFIG_NET) && CONFIG_NSOCKET_DESCRIPTORS > 0
+2 -2
View File
@@ -1,5 +1,5 @@
/**************************************************************************** /****************************************************************************
* net/recv.c * net/socket/recv.c
* *
* Copyright (C) 2007, 2008, 2012 Gregory Nutt. All rights reserved. * Copyright (C) 2007, 2008, 2012 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org> * Author: Gregory Nutt <gnutt@nuttx.org>
@@ -44,7 +44,7 @@
#include <sys/socket.h> #include <sys/socket.h>
#include <errno.h> #include <errno.h>
#include "net.h" #include "socket/socket.h"
/**************************************************************************** /****************************************************************************
* Global Functions * Global Functions
+2 -2
View File
@@ -1,5 +1,5 @@
/**************************************************************************** /****************************************************************************
* net/recvfrom.c * net/socket/recvfrom.c
* *
* Copyright (C) 2007-2009, 2011-2014 Gregory Nutt. All rights reserved. * Copyright (C) 2007-2009, 2011-2014 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org> * Author: Gregory Nutt <gnutt@nuttx.org>
@@ -60,7 +60,7 @@
#include <nuttx/net/udp.h> #include <nuttx/net/udp.h>
#include <nuttx/net/pkt.h> #include <nuttx/net/pkt.h>
#include "net.h" #include "socket/socket.h"
#include "netdev/netdev.h" #include "netdev/netdev.h"
#include "uip/uip.h" #include "uip/uip.h"
#include "tcp/tcp.h" #include "tcp/tcp.h"
+2 -2
View File
@@ -1,5 +1,5 @@
/**************************************************************************** /****************************************************************************
* net/send.c * net/socket/send.c
* *
* Copyright (C) 2007-2014 Gregory Nutt. All rights reserved. * Copyright (C) 2007-2014 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org> * Author: Gregory Nutt <gnutt@nuttx.org>
@@ -47,7 +47,7 @@
#include "tcp/tcp.h" #include "tcp/tcp.h"
#include "pkt/pkt.h" #include "pkt/pkt.h"
#include "net.h" #include "socket/socket.h"
/**************************************************************************** /****************************************************************************
* Definitions * Definitions
+2 -2
View File
@@ -1,5 +1,5 @@
/**************************************************************************** /****************************************************************************
* net/sendto.c * net/socket/sendto.c
* *
* Copyright (C) 2007-2009, 2011-2013 Gregory Nutt. All rights reserved. * Copyright (C) 2007-2009, 2011-2013 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org> * Author: Gregory Nutt <gnutt@nuttx.org>
@@ -52,7 +52,7 @@
#include <nuttx/net/netdev.h> #include <nuttx/net/netdev.h>
#include <nuttx/net/udp.h> #include <nuttx/net/udp.h>
#include "net.h" #include "socket/socket.h"
#include "netdev/netdev.h" #include "netdev/netdev.h"
#include "uip/uip.h" #include "uip/uip.h"
#include "udp/udp.h" #include "udp/udp.h"
+4 -3
View File
@@ -1,5 +1,5 @@
/**************************************************************************** /****************************************************************************
* net/setsockopt.c * net/socket/setsockopt.c
* *
* Copyright (C) 2007, 2008, 2011-2012, 2014 Gregory Nutt. All rights * Copyright (C) 2007, 2008, 2011-2012, 2014 Gregory Nutt. All rights
* reserved. * reserved.
@@ -46,7 +46,8 @@
#include <errno.h> #include <errno.h>
#include <arch/irq.h> #include <arch/irq.h>
#include "net.h" #include "socket/socket.h"
#include "utils/utils.h"
/**************************************************************************** /****************************************************************************
* Global Functions * Global Functions
@@ -184,7 +185,7 @@ int psock_setsockopt(FAR struct socket *psock, int level, int option,
/* Get the timeout value */ /* Get the timeout value */
timeo = net_timeval2dsec((struct timeval *)value); timeo = (socktimeo_t)net_timeval2dsec((struct timeval *)value);
/* Save the timeout value */ /* Save the timeout value */
+2 -2
View File
@@ -1,5 +1,5 @@
/**************************************************************************** /****************************************************************************
* net/socket.c * net/socket/socket.c
* *
* Copyright (C) 2007-2009, 2012, 2014 Gregory Nutt. All rights reserved. * Copyright (C) 2007-2009, 2012, 2014 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org> * Author: Gregory Nutt <gnutt@nuttx.org>
@@ -49,7 +49,7 @@
#include <nuttx/net/udp.h> #include <nuttx/net/udp.h>
#include <nuttx/net/pkt.h> #include <nuttx/net/pkt.h>
#include "net.h" #include "socket/socket.h"
#include "tcp/tcp.h" #include "tcp/tcp.h"
#include "udp/udp.h" #include "udp/udp.h"
#include "pkt/pkt.h" #include "pkt/pkt.h"
+5 -6
View File
@@ -1,7 +1,7 @@
/**************************************************************************** /****************************************************************************
* net/net.h * net/socket/socket.h
* *
* Copyright (C) 2007-2009, 2011-2013 Gregory Nutt. All rights reserved. * Copyright (C) 2007-2009, 2011-2014 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org> * Author: Gregory Nutt <gnutt@nuttx.org>
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
@@ -33,8 +33,8 @@
* *
****************************************************************************/ ****************************************************************************/
#ifndef _NET_NET_H #ifndef _NET_SOCKET_SOCKET_H
#define _NET_NET_H #define _NET_SOCKET_SOCKET_H
/**************************************************************************** /****************************************************************************
* Included Files * Included Files
@@ -177,7 +177,6 @@ int psock_close(FAR struct socket *psock);
#if defined(CONFIG_NET_SOCKOPTS) && !defined(CONFIG_DISABLE_CLOCK) #if defined(CONFIG_NET_SOCKOPTS) && !defined(CONFIG_DISABLE_CLOCK)
int net_timeo(uint32_t start_time, socktimeo_t timeo); int net_timeo(uint32_t start_time, socktimeo_t timeo);
socktimeo_t net_timeval2dsec(FAR struct timeval *tv);
#endif #endif
/* send.c ********************************************************************/ /* send.c ********************************************************************/
@@ -191,4 +190,4 @@ ssize_t psock_send(FAR struct socket *psock, FAR const void *buf, size_t len,
#endif #endif
#endif /* CONFIG_NET */ #endif /* CONFIG_NET */
#endif /* _NET_NET_H */ #endif /* _NET_SOCKET_SOCKET_H */
+1 -1
View File
@@ -68,7 +68,7 @@
#include <nuttx/net/netdev.h> #include <nuttx/net/netdev.h>
#include <nuttx/net/tcp.h> #include <nuttx/net/tcp.h>
#include "net.h" #include "socket/socket.h"
#include "netdev/netdev.h" #include "netdev/netdev.h"
#include "tcp/tcp.h" #include "tcp/tcp.h"
#include "uip/uip.h" #include "uip/uip.h"
+1 -1
View File
@@ -56,7 +56,7 @@
#include <nuttx/net/netdev.h> #include <nuttx/net/netdev.h>
#include <nuttx/net/tcp.h> #include <nuttx/net/tcp.h>
#include "net.h" #include "socket/socket.h"
#include "netdev/netdev.h" #include "netdev/netdev.h"
#include "uip/uip.h" #include "uip/uip.h"
#include "tcp/tcp.h" #include "tcp/tcp.h"
+1 -1
View File
@@ -33,7 +33,7 @@
# #
############################################################################ ############################################################################
NET_CSRCS += net_dsec2timeval.c net_chksum.c NET_CSRCS += net_dsec2timeval.c net_timeval2dsec.c net_chksum.c
# Non-interrupt level support required? # Non-interrupt level support required?
+1 -1
View File
@@ -44,7 +44,7 @@
#include <errno.h> #include <errno.h>
#include <nuttx/clock.h> #include <nuttx/clock.h>
#include "net.h" #include "utils/utils.h"
/**************************************************************************** /****************************************************************************
* Public Functions * Public Functions

Some files were not shown because too many files have changed in this diff Show More