diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-01-30 21:29:59 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-01-30 21:29:59 +0000 |
commit | 9ddfc032d424842691e1f4a30960547b578c9036 (patch) | |
tree | 3e0841836e96d7f053e3ee20f9caf4d1bd515dfc /nuttx/net/net_internal.h | |
parent | d1143e0418c1cd3cbf447e8f49c57bda0e81d75c (diff) | |
download | px4-nuttx-9ddfc032d424842691e1f4a30960547b578c9036.tar.gz px4-nuttx-9ddfc032d424842691e1f4a30960547b578c9036.tar.bz2 px4-nuttx-9ddfc032d424842691e1f4a30960547b578c9036.zip |
Add new psock layer; telnet session is now wrapped in a character device
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4347 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/net/net_internal.h')
-rw-r--r-- | nuttx/net/net_internal.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/nuttx/net/net_internal.h b/nuttx/net/net_internal.h index e3498cd44..4046070ab 100644 --- a/nuttx/net/net_internal.h +++ b/nuttx/net/net_internal.h @@ -1,8 +1,8 @@ /**************************************************************************** * net/net_internal.h * - * Copyright (C) 2007-2009, 2011 Gregory Nutt. All rights reserved. - * Author: Gregory Nutt <spudmonkey@racsa.co.cr> + * Copyright (C) 2007-2009, 2011-2012 Gregory Nutt. All rights reserved. + * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -48,6 +48,7 @@ #include <time.h> #include <nuttx/net.h> +#include <net/psock.h> #include <net/uip/uip.h> /**************************************************************************** @@ -157,7 +158,7 @@ EXTERN FAR struct socket *sockfd_socket(int sockfd); /* net_close.c ***************************************************************/ -EXTERN int net_closesocket(FAR struct socket *psock); +EXTERN int psock_close(FAR struct socket *psock); /* sockopt support ***********************************************************/ @@ -206,6 +207,11 @@ EXTERN void arptimer_init(void); # define arptimer_init() #endif +/* send.c ********************************************************************/ + +EXTERN ssize_t psock_send(FAR struct socket *psock, const void *buf, + size_t len, int flags); + #undef EXTERN #if defined(__cplusplus) } |