- Timestamp:
- 2006-05-15T15:33:51Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 51d6f80
- Parents:
- 043dcc27
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ns/ns.c
r043dcc27 r108602e 104 104 ipcarg_t retval, arg1, arg2; 105 105 106 printf("%s: Nam eservice started.\n", NAME);106 printf("%s: Naming service started.\n", NAME); 107 107 108 108 if (!hash_table_create(&ns_hash_table, NS_HASH_TABLE_CHAINS, 3, &ns_hash_table_ops)) { … … 149 149 retval = connect_to_service(IPC_GET_ARG1(call), &call, callid); 150 150 break; 151 case NS_HANGUP: 152 printf("Closing connection.\n"); 153 retval = EHANGUP; 154 break; 151 155 case NS_PING: 152 156 printf("Ping...%P %P\n", IPC_GET_ARG1(call), … … 156 160 arg2 = 0xbeef; 157 161 break; 158 case NS_HANGUP:159 printf("Closing connection.\n");160 retval = EHANGUP;161 break;162 162 case NS_PING_SVC: 163 163 printf("NS:Pinging service %d\n", ping_phone); … … 177 177 } 178 178 179 /** Register serv er.179 /** Register service. 180 180 * 181 181 * @param service Service to be registered. … … 228 228 hlp = hash_table_find(&ns_hash_table, keys); 229 229 if (!hlp) { 230 printf("Service %d not yregistered.\n", service);230 printf("Service %d not registered.\n", service); 231 231 return ENOENT; 232 232 }
Note:
See TracChangeset
for help on using the changeset viewer.