diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-09-08 15:26:55 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-09-08 15:26:55 +0000 |
commit | a40d3bfbe2690c0aa60fb372646c21da3e7a1512 (patch) | |
tree | fdde14d9c9776e5ef91a006974ad86e0429259c7 /nuttx/net/connect.c | |
parent | 85a030ffc1b51c9bcf924f80ff92c04d4fc0abcc (diff) | |
download | px4-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/connect.c')
-rw-r--r-- | nuttx/net/connect.c | 12 |
1 files changed, 6 insertions, 6 deletions
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 |