/branches/network/uspace/srv/net/tl/tcp/tcp_module.h |
---|
42,7 → 42,7 |
#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. |
* @param[in] client_connection The client connection processing function. The module skeleton propagates its own one. |
* @returns EOK on success. |
* @returns ENOMEM if there is not enough memory left. |
*/ |
49,10 → 49,10 |
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. |
* @param[in] callid The message identifier. |
* @param[in] call The message parameters. |
* @param[out] answer The message answer parameters. |
* @param[out] answer_count The last parameter for the actual answer in the answer parameter. |
* @returns EOK on success. |
* @returns ENOTSUP if the message is not known. |
* @see tcp_interface.h |
/branches/network/uspace/srv/net/tl/tcp/tcp_header.h |
---|
40,13 → 40,13 |
#include <sys/types.h> |
/** Returns the actual TCP header length. |
* @param header The TCP packet header. Input parameter. |
/** Returns the actual TCP header length in bytes. |
* @param[in] header The TCP packet header. |
*/ |
#define TCP_HEADER_LENGTH( header ) (( header )->header_length * 4u ) |
/** Returns the actual TCP header length. |
* @param header The TCP packet header. Input parameter. |
/** Returns the TCP header length. |
* @param[in] length The TCP header length in bytes. |
*/ |
#define TCP_COMPUTE_HEADER_LENGTH( length ) (( uint8_t ) (( length ) / 4u )) |
/branches/network/uspace/srv/net/tl/tcp/tcp.c |
---|
33,7 → 33,6 |
/** @file |
* TCP module implementation. |
* @see tcp.h |
* \todo |
*/ |
#include <assert.h> |
81,11 → 80,11 |
*/ |
#define NET_DEFAULT_TCP_WINDOW 10240 |
/** \todo |
/** Initial timeout for new connections. |
*/ |
#define NET_DEFAULT_TCP_INITIAL_TIMEOUT 3000000L |
/** \todo |
/** Default timeout for closing. |
*/ |
#define NET_DEFAULT_TCP_TIME_WAIT_TIMEOUT 2000L |
105,7 → 104,7 |
*/ |
#define TCP_FREE_PORTS_END 65535 |
/** \todo |
/** Timeout for connection initialization, SYN sent. |
*/ |
#define TCP_SYN_SENT_TIMEOUT 1000000L |
117,7 → 116,11 |
*/ |
#define TCP_FAST_RETRANSMIT_COUNT 3 |
/** \todo |
/** Returns a value indicating whether the value is in the interval respecting the possible overflow. |
* The high end and/or the value may overflow, be lower than the low value. |
* @param[in] lower The last value before the interval. |
* @param[in] value The value to be checked. |
* @param[in] high_equal The last value in the interval. |
*/ |
#define IS_IN_INTERVAL_OVERFLOW( lower, value, higher_equal ) (((( lower ) < ( value )) && ((( value ) <= ( higher_equal )) || (( higher_equal ) < ( lower )))) || ((( value ) <= ( higher_equal )) && (( higher_equal ) < ( lower )))) |
166,8 → 169,8 |
}; |
/** Releases the packet and returns the result. |
* @param packet The packet queue to be released. Input parameter. |
* @param result The result to be returned. Input parameter. |
* @param[in] packet The packet queue to be released. |
* @param[in] result The result to be returned. |
* @return The result parameter. |
*/ |
int tcp_release_and_return( packet_t packet, int result ); |
/branches/network/uspace/srv/net/tl/tcp/tcp_module.c |
---|
66,7 → 66,7 |
/** 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. |
* @param[in] client_connection The client connection processing function. The module skeleton propagates its own one. |
* @returns EOK on successful module termination. |
* @returns Other error codes as defined for the tcp_initialize() function. |
* @returns Other error codes as defined for the REGISTER_ME() macro function. |
74,10 → 74,10 |
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. |
* @param[in] callid The message identifier. |
* @param[in] call The message parameters. |
* @param[out] answer The message answer parameters. |
* @param[out] answer_count The last parameter for the actual answer in the answer parameter. |
* @returns EOK on success. |
* @returns Other error codes as defined for the tcp_message() function. |
*/ |