Changeset aadf01e in mainline for uspace/srv/net/tl/udp/udp_module.c
- Timestamp:
- 2010-03-07T15:13:28Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 936835e
- Parents:
- aa85487
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/tl/udp/udp_module.c
raa85487 raadf01e 61 61 * @see NAME 62 62 */ 63 void module_print_name( void);63 void module_print_name(void); 64 64 65 65 /** Starts the UDP module. … … 70 70 * @returns Other error codes as defined for the REGISTER_ME() macro function. 71 71 */ 72 int module_start( async_client_conn_t client_connection);72 int module_start(async_client_conn_t client_connection); 73 73 74 74 /** Processes the UDP message. … … 80 80 * @returns Other error codes as defined for the udp_message() function. 81 81 */ 82 int module_message( ipc_callid_t callid, ipc_call_t * call, ipc_call_t * answer, int * answer_count);82 int module_message(ipc_callid_t callid, ipc_call_t * call, ipc_call_t * answer, int * answer_count); 83 83 84 84 /** UDP module global data. … … 86 86 extern udp_globals_t udp_globals; 87 87 88 void module_print_name( void){89 printf( "%s", NAME);88 void module_print_name(void){ 89 printf("%s", NAME); 90 90 } 91 91 92 int module_start( async_client_conn_t client_connection){92 int module_start(async_client_conn_t client_connection){ 93 93 ERROR_DECLARE; 94 94 95 ipcarg_t 95 ipcarg_t phonehash; 96 96 97 async_set_client_connection( client_connection);98 udp_globals.net_phone = net_connect_module( SERVICE_NETWORKING);99 if( udp_globals.net_phone < 0){97 async_set_client_connection(client_connection); 98 udp_globals.net_phone = net_connect_module(SERVICE_NETWORKING); 99 if(udp_globals.net_phone < 0){ 100 100 return udp_globals.net_phone; 101 101 } 102 ERROR_PROPAGATE( 103 if( ERROR_OCCURRED( udp_initialize( client_connection))104 || ERROR_OCCURRED( REGISTER_ME( SERVICE_UDP, & phonehash))){102 ERROR_PROPAGATE(pm_init()); 103 if(ERROR_OCCURRED(udp_initialize(client_connection)) 104 || ERROR_OCCURRED(REGISTER_ME(SERVICE_UDP, &phonehash))){ 105 105 pm_destroy(); 106 106 return ERROR_CODE; … … 113 113 } 114 114 115 int module_message( ipc_callid_t callid, ipc_call_t * call, ipc_call_t * answer, int * answer_count){116 return udp_message( callid, call, answer, answer_count);115 int module_message(ipc_callid_t callid, ipc_call_t * call, ipc_call_t * answer, int * answer_count){ 116 return udp_message(callid, call, answer, answer_count); 117 117 } 118 118
Note:
See TracChangeset
for help on using the changeset viewer.