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
This commit is contained in:
patacongo
2012-01-30 21:29:59 +00:00
parent e94dcdf625
commit 9b617b6133
10 changed files with 572 additions and 44 deletions
+6 -6
View File
@@ -1,8 +1,8 @@
/****************************************************************************
* net/net_close.c
*
* Copyright (C) 2007-2011 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
* Copyright (C) 2007-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
@@ -199,10 +199,10 @@ static inline void netclose_disconnect(FAR struct socket *psock)
****************************************************************************/
/****************************************************************************
* Function: net_closesocket
* Function: psock_close
*
* Description:
* Performs the close operation on asocket instance
* Performs the close operation on a socket instance
*
* Parameters:
* psock Socket instance
@@ -214,7 +214,7 @@ static inline void netclose_disconnect(FAR struct socket *psock)
*
****************************************************************************/
int net_closesocket(FAR struct socket *psock)
int psock_close(FAR struct socket *psock)
{
int err;
@@ -324,7 +324,7 @@ errout:
int net_close(int sockfd)
{
return net_closesocket(sockfd_socket(sockfd));
return psock_close(sockfd_socket(sockfd));
}
#endif /* CONFIG_NET */