Subversion Repositories HelenOS

Compare Revisions

Ignore whitespace Rev 4703 → Rev 4704

/branches/network/uspace/srv/net/tl/tcp/tcp_module.h
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
/branches/network/uspace/srv/net/tl/tcp/tcp.c
31,6 → 31,7
*/
 
/** @file
* \todo
*/
 
#include <async.h>
/branches/network/uspace/srv/net/tl/tcp/tcp.h
31,6 → 31,7
*/
 
/** @file
* \todo
*/
 
#ifndef __NET_TCP_H__
/branches/network/uspace/srv/net/tl/tcp/tcp_module.c
31,6 → 31,10
*/
 
/** @file
* TCP standalone module implementation.
* Contains skeleton module functions mapping.
* The functions are used by the module skeleton as module specific entry points.
* @see module.c
*/
 
#include <async.h>
51,12 → 55,36
#include "tcp.h"
#include "tcp_module.h"
 
/** TCP module name.
*/
#define NAME "TCP protocol"
 
/** Prints the module name.
* @see NAME
*/
void module_print_name( void );
 
/** Starts the TCP module.
* Initializes the client connection serving function, initializes the module, registers the module service and starts the async manager, processing IPC messages in an infinite loop.
* @param client_connection The client connection processing function. The module skeleton propagates its own one. Input parameter.
* @returns EOK on successful module termination.
* @returns Other error codes as defined for the arp_initialize() function.
* @returns Other error codes as defined for the REGISTER_ME() macro function.
*/
int module_start( 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 Other error codes as defined for the tcp_message() function.
*/
int module_message( ipc_callid_t callid, ipc_call_t * call, ipc_call_t * answer, int * answer_count );
 
/** TCP module global data.
*/
extern tcp_globals_t tcp_globals;
 
void module_print_name( void ){