summaryrefslogtreecommitdiff
path: root/nuttx/net
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2007-09-08 15:26:55 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2007-09-08 15:26:55 +0000
commita40d3bfbe2690c0aa60fb372646c21da3e7a1512 (patch)
treefdde14d9c9776e5ef91a006974ad86e0429259c7 /nuttx/net
parent85a030ffc1b51c9bcf924f80ff92c04d4fc0abcc (diff)
downloadpx4-nuttx-a40d3bfbe2690c0aa60fb372646c21da3e7a1512.tar.gz
px4-nuttx-a40d3bfbe2690c0aa60fb372646c21da3e7a1512.tar.bz2
px4-nuttx-a40d3bfbe2690c0aa60fb372646c21da3e7a1512.zip
Documentation update
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@333 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/net')
-rw-r--r--nuttx/net/bind.c8
-rw-r--r--nuttx/net/connect.c12
-rw-r--r--nuttx/net/recvfrom.c2
3 files changed, 11 insertions, 11 deletions
diff --git a/nuttx/net/bind.c b/nuttx/net/bind.c
index 97ff479b4..118d1d82f 100644
--- a/nuttx/net/bind.c
+++ b/nuttx/net/bind.c
@@ -54,15 +54,15 @@
* Function: bind
*
* Description:
- * bind() gives the socket sockfd the local address my_addr. my_addr is
- * addrlen bytes long. Traditionally, this is called “assigning a name to
- * a socket.” When a socket is created with socket(2), it exists in a name
+ * bind() gives the socket 'sockfd' the local address 'addr'. 'addr' is
+ * 'addrlen' bytes long. Traditionally, this is called “assigning a name to
+ * a socket.” When a socket is created with socket, it exists in a name
* space (address family) but has no name assigned.
*
* Parameters:
* sockfd Socket descriptor from socket
* addr Socket local address
- * addrlen Length of my_addr
+ * addrlen Length of 'addr'
*
* Returned Value:
* 0 on success; -1 on error with errno set appropriately
diff --git a/nuttx/net/connect.c b/nuttx/net/connect.c
index bbc112f19..32f962ec0 100644
--- a/nuttx/net/connect.c
+++ b/nuttx/net/connect.c
@@ -55,15 +55,15 @@
*
* Description:
* connect() connects the socket referred to by the file descriptor sockfd
- * to the address specified by serv_addr. The addrlen argument specifies
- * the size of serv_addr. The format of the address in serv_addr is
+ * to the address specified by 'addr'. The addrlen argument specifies
+ * the size of 'addr'. The format of the address in 'addr' is
* determined by the address space of the socket sockfd.
*
- * If the socket sockfd is of type SOCK_DGRAM then serv_addr is the address
+ * If the socket sockfd is of type SOCK_DGRAM then 'addr' is the address
* to which datagrams are sent by default, and the only address from which
* datagrams are received. If the socket is of type SOCK_STREAM or
* SOCK_SEQPACKET, this call attempts to make a connection to the socket
- * that is bound to the address specified by serv_addr.
+ * that is bound to the address specified by 'addr'.
*
* Generally, connection-based protocol sockets may successfully connect()
* only once; connectionless protocol sockets may use connect() multiple
@@ -73,8 +73,8 @@
*
* Parameters:
* sockfd Socket descriptor returned by socket()
- * serv_addr Server address (form depends on type of socket)
- * addrlen Lenght of actual serv_addr
+ * addr Server address (form depends on type of socket)
+ * addrlen Length of actual 'addr'
*
* Returned Value:
* 0 on success; -1 on error with errno set appropriately
diff --git a/nuttx/net/recvfrom.c b/nuttx/net/recvfrom.c
index ac1f5f2bb..735f767f1 100644
--- a/nuttx/net/recvfrom.c
+++ b/nuttx/net/recvfrom.c
@@ -152,7 +152,7 @@ void recvfrom_interrupt(void *private)
* EINVAL
* Invalid argument passed.
* ENOMEM
- * Could not allocate memory for recvmsg().
+ * Could not allocate memory.
* ENOTCONN
* The socket is associated with a connection-oriented protocol and has
* not been connected.