31,6 → 31,8 |
*/ |
|
/** @file |
* TCP module functions. |
* The functions are used as TCP module entry points. |
*/ |
|
#ifndef __NET_TCP_MODULE_H__ |
39,7 → 41,23 |
#include <async.h> |
#include <ipc/ipc.h> |
|
/** Initializes the TCP module. |
* @param client_connection The client connection processing function. The module skeleton propagates its own one. Input parameter. |
* @returns EOK on success. |
* @returns ENOMEM if there is not enough memory left. |
*/ |
int tcp_initialize( async_client_conn_t client_connection ); |
|
/** Processes the TCP message. |
* @param callid The message identifier. Input parameter. |
* @param call The message parameters. Input parameter. |
* @param answer The message answer parameters. Output parameter. |
* @param answer_count The last parameter for the actual answer in the answer parameter. Output parameter. |
* @returns EOK on success. |
* @returns ENOTSUP if the message is not known. |
* @see tcp_interface.h |
* @see IS_NET_TCP_MESSAGE() |
*/ |
int tcp_message( ipc_callid_t callid, ipc_call_t * call, ipc_call_t * answer, int * answer_count ); |
|
#endif |