194,17 → 194,17 |
static sockets_ref socket_get_sockets( void ); |
|
/** Default thread for new connections. |
* @param iid The initial message identifier. Input parameter. |
* @param icall The initial message call structure. Input parameter. |
* @param[in] iid The initial message identifier. |
* @param[in] icall The initial message call structure. |
*/ |
void socket_connection( ipc_callid_t iid, ipc_call_t * icall ); |
|
/** Sends message to the socket parent module with specified data. |
* @param socket_id Socket identifier. Input parameter. |
* @param message The action message. Input parameter. |
* @param arg2 The second message parameter. Input parameter. |
* @param data The data to be sent. Input parameter. |
* @param datalength The data length. Input parameter. |
* @param[in] socket_id Socket identifier. |
* @param[in] message The action message. |
* @param[in] arg2 The second message parameter. |
* @param[in] data The data to be sent. |
* @param[in] datalength The data length. |
* @returns EOK on success. |
* @returns ENOTSOCK if the socket is not found. |
* @returns EBADMEM if the data parameter is NULL. |
214,26 → 214,26 |
int socket_send_data( int socket_id, ipcarg_t message, ipcarg_t arg2, const void * data, size_t datalength ); |
|
/** Initializes a new socket specific data. |
* @param socket The socket to be initialized. Input/output parameter. |
* @param socket_id The new socket identifier. Input parameter. |
* @param phone The parent module phone. Input parameter. |
* @param service The parent module service. Input parameter. |
* @param[in,out] socket The socket to be initialized. |
* @param[in] socket_id The new socket identifier. |
* @param[in] phone The parent module phone. |
* @param[in] service The parent module service. |
*/ |
void socket_initialize( socket_ref socket, int socket_id, int phone, services_t service ); |
|
/** Clears and destroys the socket. |
* @param socket The socket to be destroyed. Input parameter. |
* @param[in] socket The socket to be destroyed. |
*/ |
void socket_destroy( socket_ref socket ); |
|
/** Receives data via the socket. |
* @param message The action message. Input parameter. |
* @param socket_id Socket identifier. Input parameter. |
* @param data The data buffer to be filled. Output parameter. |
* @param datalength The data length. Input parameter. |
* @param flags Various receive flags. Input parameter. |
* @param fromaddr The source address. May be NULL for connected sockets. Output parameter. |
* @param addrlen The address length. The maximum address length is read. The actual address length is set. Used only if fromaddr is not NULL. Input/output parameter. |
* @param[in] message The action message. |
* @param[in] socket_id Socket identifier. |
* @param[out] data The data buffer to be filled. |
* @param[in] datalength The data length. |
* @param[in] flags Various receive flags. |
* @param[out] fromaddr The source address. May be NULL for connected sockets. |
* @param[in,out] addrlen The address length. The maximum address length is read. The actual address length is set. Used only if fromaddr is not NULL. |
* @returns EOK on success. |
* @returns ENOTSOCK if the socket is not found. |
* @returns EBADMEM if the data parameter is NULL. |
244,13 → 244,13 |
|
/** Sends data via the socket to the remote address. |
* Binds the socket to a free port if not already connected/bound. |
* @param message The action message. Input parameter. |
* @param socket_id Socket identifier. Input parameter. |
* @param data The data to be sent. Input parameter. |
* @param datalength The data length. Input parameter. |
* @param flags Various send flags. Input parameter. |
* @param toaddr The destination address. May be NULL for connected sockets. Input parameter. |
* @param addrlen The address length. Used only if toaddr is not NULL. Input parameter. |
* @param[in] message The action message. |
* @param[in] socket_id Socket identifier. |
* @param[in] data The data to be sent. |
* @param[in] datalength The data length. |
* @param[in] flags Various send flags. |
* @param[in] toaddr The destination address. May be NULL for connected sockets. |
* @param[in] addrlen The address length. Used only if toaddr is not NULL. |
* @returns EOK on success. |
* @returns ENOTSOCK if the socket is not found. |
* @returns EBADMEM if the data or toaddr parameter is NULL. |