Changes in uspace/srv/net/tl/tcp/tcp_module.c [21580dd:aadf01e] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/tl/tcp/tcp_module.c
r21580dd raadf01e 63 63 * @see NAME 64 64 */ 65 void module_print_name( void);65 void module_print_name(void); 66 66 67 67 /** Starts the TCP module. … … 72 72 * @returns Other error codes as defined for the REGISTER_ME() macro function. 73 73 */ 74 int module_start( async_client_conn_t client_connection);74 int module_start(async_client_conn_t client_connection); 75 75 76 76 /** Processes the TCP message. … … 82 82 * @returns Other error codes as defined for the tcp_message() function. 83 83 */ 84 int module_message( ipc_callid_t callid, ipc_call_t * call, ipc_call_t * answer, int * answer_count);84 int module_message(ipc_callid_t callid, ipc_call_t * call, ipc_call_t * answer, int * answer_count); 85 85 86 86 /** TCP module global data. … … 88 88 extern tcp_globals_t tcp_globals; 89 89 90 void module_print_name( void){91 printf( "%s", NAME);90 void module_print_name(void){ 91 printf("%s", NAME); 92 92 } 93 93 94 int module_start( async_client_conn_t client_connection){94 int module_start(async_client_conn_t client_connection){ 95 95 ERROR_DECLARE; 96 96 97 ipcarg_t 97 ipcarg_t phonehash; 98 98 99 async_set_client_connection( client_connection);100 tcp_globals.net_phone = net_connect_module( SERVICE_NETWORKING);101 ERROR_PROPAGATE( 102 if( ERROR_OCCURRED( tcp_initialize( client_connection))103 || ERROR_OCCURRED( REGISTER_ME( SERVICE_TCP, & phonehash))){99 async_set_client_connection(client_connection); 100 tcp_globals.net_phone = net_connect_module(SERVICE_NETWORKING); 101 ERROR_PROPAGATE(pm_init()); 102 if(ERROR_OCCURRED(tcp_initialize(client_connection)) 103 || ERROR_OCCURRED(REGISTER_ME(SERVICE_TCP, &phonehash))){ 104 104 pm_destroy(); 105 105 return ERROR_CODE; … … 112 112 } 113 113 114 int module_message( ipc_callid_t callid, ipc_call_t * call, ipc_call_t * answer, int * answer_count){115 return tcp_message( callid, call, answer, answer_count);114 int module_message(ipc_callid_t callid, ipc_call_t * call, ipc_call_t * answer, int * answer_count){ 115 return tcp_message(callid, call, answer, answer_count); 116 116 } 117 117
Note:
See TracChangeset
for help on using the changeset viewer.