Changes in uspace/srv/net/tl/tcp/tcp.c [1e2e0c1e:2e99277] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/tl/tcp/tcp.c
r1e2e0c1e r2e99277 1070 1070 * - Answer the first IPC_M_CONNECT_ME_TO call. 1071 1071 */ 1072 ipc_answer_0( callid, EOK ); 1072 res = EOK; 1073 answer_count = 0; 1073 1074 1074 1075 socket_cores_initialize( & local_sockets ); … … 1076 1077 1077 1078 while( keep_on_going ){ 1079 1080 // answer the call 1081 answer_call( callid, res, & answer, answer_count ); 1082 1078 1083 // refresh data 1079 1084 refresh_answer( & answer, & answer_count ); 1080 1085 1086 // get the next call 1081 1087 callid = async_get_call( & call ); 1082 // printf( "message %d\n", IPC_GET_METHOD( * call )); 1083 1088 1089 // process the call 1084 1090 switch( IPC_GET_METHOD( call )){ 1085 1091 case IPC_M_PHONE_HUNGUP: 1086 1092 keep_on_going = false; 1087 res = E OK;1093 res = EHANGUP; 1088 1094 break; 1089 1095 case NET_SOCKET: … … 1231 1237 break; 1232 1238 } 1233 1234 // printf( "res = %d\n", res );1235 1236 answer_call( callid, res, & answer, answer_count );1237 1239 } 1238 1240 … … 1273 1275 // TODO release as connection lost 1274 1276 //tcp_refresh_socket_data( socket_data ); 1275 } 1276 // retransmit1277 // TODO enable retransmit1278 //tcp_retransmit_packet( socket, socket_data, timeout->sequence_number );1277 }else{ 1278 // retransmit 1279 tcp_retransmit_packet( socket, socket_data, timeout->sequence_number ); 1280 } 1279 1281 fibril_rwlock_write_unlock( socket_data->local_lock ); 1280 1282 }else{
Note:
See TracChangeset
for help on using the changeset viewer.