Rev 4756 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4756 | Rev 4759 | ||
---|---|---|---|
Line 118... | Line 118... | ||
118 | 118 | ||
119 | /** Returns a value indicating whether the value is in the interval respecting the possible overflow. |
119 | /** Returns a value indicating whether the value is in the interval respecting the possible overflow. |
120 | * The high end and/or the value may overflow, be lower than the low value. |
120 | * The high end and/or the value may overflow, be lower than the low value. |
121 | * @param[in] lower The last value before the interval. |
121 | * @param[in] lower The last value before the interval. |
122 | * @param[in] value The value to be checked. |
122 | * @param[in] value The value to be checked. |
123 | * @param[in] high_equal The last value in the interval. |
123 | * @param[in] higher_equal The last value in the interval. |
124 | */ |
124 | */ |
125 | #define IS_IN_INTERVAL_OVERFLOW( lower, value, higher_equal ) (((( lower ) < ( value )) && ((( value ) <= ( higher_equal )) || (( higher_equal ) < ( lower )))) || ((( value ) <= ( higher_equal )) && (( higher_equal ) < ( lower )))) |
125 | #define IS_IN_INTERVAL_OVERFLOW( lower, value, higher_equal ) (((( lower ) < ( value )) && ((( value ) <= ( higher_equal )) || (( higher_equal ) < ( lower )))) || ((( value ) <= ( higher_equal )) && (( higher_equal ) < ( lower )))) |
126 | 126 | ||
127 | /** Type definition of the TCP timeout. |
127 | /** Type definition of the TCP timeout. |
128 | * @see tcp_timeout |
128 | * @see tcp_timeout |
Line 210... | Line 210... | ||
210 | 210 | ||
211 | /** TCP global data. |
211 | /** TCP global data. |
212 | */ |
212 | */ |
213 | tcp_globals_t tcp_globals; |
213 | tcp_globals_t tcp_globals; |
214 | 214 | ||
215 | /** Initializes the module. |
- | |
216 | */ |
- | |
217 | int tcp_initialize( async_client_conn_t client_connection ){ |
215 | int tcp_initialize( async_client_conn_t client_connection ){ |
218 | ERROR_DECLARE; |
216 | ERROR_DECLARE; |
219 | 217 | ||
220 | assert( client_connection ); |
218 | assert( client_connection ); |
221 | fibril_rwlock_initialize( & tcp_globals.lock ); |
219 | fibril_rwlock_initialize( & tcp_globals.lock ); |