Changeset db6c332 in mainline for uspace/lib/c
- Timestamp:
- 2010-10-10T15:23:28Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- e9460aa
- Parents:
- 368fb2c
- File:
-
- 1 edited
-
uspace/lib/c/generic/net/socket_client.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/net/socket_client.c
r368fb2c rdb6c332 27 27 */ 28 28 29 /** @addtogroup libc 29 /** @addtogroup libc 30 30 * @{ 31 31 */ … … 516 516 /** Sends message to the socket parent module with specified data. 517 517 * 518 * @param[in] socket_idSocket identifier.519 * @param[in] message The action message.520 * @param[in] arg2 The second message parameter.521 * @param[in] data The data to be sent.522 * @param[in] datalength The data length.523 * @returns EOK on success.524 * @returns ENOTSOCK if the socket is not found.525 * @returns EBADMEM if the data parameter is NULL.526 * @returns NO_DATA if the datalength parameter is zero (0).527 * @returns Other error codes as defined for the spcific message.518 * @param[in] socket_id Socket identifier. 519 * @param[in] message The action message. 520 * @param[in] arg2 The second message parameter. 521 * @param[in] data The data to be sent. 522 * @param[in] datalength The data length. 523 * @returns EOK on success. 524 * @returns ENOTSOCK if the socket is not found. 525 * @returns EBADMEM if the data parameter is NULL. 526 * @returns NO_DATA if the datalength parameter is zero (0). 527 * @returns Other error codes as defined for the spcific message. 528 528 */ 529 529 static int … … 805 805 /** Sends data via the socket to the remote address. 806 806 * 807 * Binds the socket to a free port if not already connected/bound.808 * 809 * @param[in] message The action message.810 * @param[in] socket_id Socket identifier.811 * @param[in] data The data to be sent.812 * @param[in] datalength The data length.813 * @param[in] flags Various send flags.814 * @param[in] toaddr The destination address. May be NULL for connected807 * Binds the socket to a free port if not already connected/bound. 808 * 809 * @param[in] message The action message. 810 * @param[in] socket_id Socket identifier. 811 * @param[in] data The data to be sent. 812 * @param[in] datalength The data length. 813 * @param[in] flags Various send flags. 814 * @param[in] toaddr The destination address. May be NULL for connected 815 815 * sockets. 816 * @param[in] addrlen The address length. Used only if toaddr is not NULL.817 * @returns EOK on success.818 * @returns ENOTSOCK if the socket is not found.819 * @returns EBADMEM if the data or toaddr parameter is NULL.820 * @returns NO_DATA if the datalength or the addrlen parameter is816 * @param[in] addrlen The address length. Used only if toaddr is not NULL. 817 * @returns EOK on success. 818 * @returns ENOTSOCK if the socket is not found. 819 * @returns EBADMEM if the data or toaddr parameter is NULL. 820 * @returns NO_DATA if the datalength or the addrlen parameter is 821 821 * zero (0). 822 * @returns Other error codes as defined for the NET_SOCKET_SENDTO822 * @returns Other error codes as defined for the NET_SOCKET_SENDTO 823 823 * message. 824 824 */ … … 966 966 /** Receives data via the socket. 967 967 * 968 * @param[in] message The action message.969 * @param[in] socket_idSocket identifier.970 * @param[out] data The data buffer to be filled.971 * @param[in] datalength The data length.972 * @param[in] flags Various receive flags.973 * @param[out] fromaddrThe source address. May be NULL for connected sockets.974 * @param[in,out] addrlen The address length. The maximum address length is968 * @param[in] message The action message. 969 * @param[in] socket_id Socket identifier. 970 * @param[out] data The data buffer to be filled. 971 * @param[in] datalength The data length. 972 * @param[in] flags Various receive flags. 973 * @param[out] fromaddr The source address. May be NULL for connected sockets. 974 * @param[in,out] addrlen The address length. The maximum address length is 975 975 * read. The actual address length is set. Used only if 976 976 * fromaddr is not NULL. 977 * @returns EOK on success.978 * @returns ENOTSOCK if the socket is not found.979 * @returns EBADMEM if the data parameter is NULL.980 * @returns NO_DATA if the datalength or addrlen parameter is zero.981 * @returns Other error codes as defined for the spcific message.977 * @returns EOK on success. 978 * @returns ENOTSOCK if the socket is not found. 979 * @returns EBADMEM if the data parameter is NULL. 980 * @returns NO_DATA if the datalength or addrlen parameter is zero. 981 * @returns Other error codes as defined for the spcific message. 982 982 */ 983 983 static int
Note:
See TracChangeset
for help on using the changeset viewer.
