Subversion Repositories HelenOS

Rev

Rev 4499 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4499 Rev 4704
Line 29... Line 29...
29
/** @addtogroup tcp
29
/** @addtogroup tcp
30
 *  @{
30
 *  @{
31
 */
31
 */
32
 
32
 
33
/** @file
33
/** @file
-
 
34
 *  TCP module functions.
-
 
35
 *  The functions are used as TCP module entry points.
34
 */
36
 */
35
 
37
 
36
#ifndef __NET_TCP_MODULE_H__
38
#ifndef __NET_TCP_MODULE_H__
37
#define __NET_TCP_MODULE_H__
39
#define __NET_TCP_MODULE_H__
38
 
40
 
39
#include <async.h>
41
#include <async.h>
40
#include <ipc/ipc.h>
42
#include <ipc/ipc.h>
41
 
43
 
-
 
44
/** Initializes the TCP module.
-
 
45
 *  @param client_connection The client connection processing function. The module skeleton propagates its own one. Input parameter.
-
 
46
 *  @returns EOK on success.
-
 
47
 *  @returns ENOMEM if there is not enough memory left.
-
 
48
 */
42
int tcp_initialize( async_client_conn_t client_connection );
49
int tcp_initialize( async_client_conn_t client_connection );
-
 
50
 
-
 
51
/** Processes the TCP message.
-
 
52
 *  @param callid The message identifier. Input parameter.
-
 
53
 *  @param call The message parameters. Input parameter.
-
 
54
 *  @param answer The message answer parameters. Output parameter.
-
 
55
 *  @param answer_count The last parameter for the actual answer in the answer parameter. Output parameter.
-
 
56
 *  @returns EOK on success.
-
 
57
 *  @returns ENOTSUP if the message is not known.
-
 
58
 *  @see tcp_interface.h
-
 
59
 *  @see IS_NET_TCP_MESSAGE()
-
 
60
 */
43
int tcp_message( ipc_callid_t callid, ipc_call_t * call, ipc_call_t * answer, int * answer_count );
61
int tcp_message( ipc_callid_t callid, ipc_call_t * call, ipc_call_t * answer, int * answer_count );
44
 
62
 
45
#endif
63
#endif
46
 
64
 
47
/** @}
65
/** @}