Rev 2479 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2479 | Rev 2619 | ||
---|---|---|---|
Line 64... | Line 64... | ||
64 | 64 | ||
65 | printf("%s: accepting connections\n", NAME); |
65 | printf("%s: accepting connections\n", NAME); |
66 | while (1) { |
66 | while (1) { |
67 | ipc_call_t call; |
67 | ipc_call_t call; |
68 | ipc_callid_t callid; |
68 | ipc_callid_t callid; |
- | 69 | ipcarg_t retval = ENOTSUP; |
|
69 | 70 | ||
70 | callid = ipc_wait_for_call(&call); |
71 | callid = ipc_wait_for_call(&call); |
71 | switch(IPC_GET_METHOD(call)) { |
72 | switch(IPC_GET_METHOD(call)) { |
72 | case IPC_M_CONNECT_ME_TO: |
73 | case IPC_M_CONNECT_ME_TO: |
73 | IPC_SET_RETVAL(call, 0); |
74 | retval = EOK; |
74 | break; |
75 | break; |
75 | } |
76 | } |
76 | if (! (callid & IPC_CALLID_NOTIFICATION)) { |
- | |
77 | ipc_answer(callid, &call); |
77 | ipc_answer_0(callid, retval); |
78 | } |
- | |
79 | printf("%s: received call from %lX\n", NAME, call.in_phone_hash); |
78 | printf("%s: received call from %lX\n", NAME, |
- | 79 | call.in_phone_hash); |
|
80 | } |
80 | } |
81 | 81 | ||
82 | pci_cleanup(pacc); |
82 | pci_cleanup(pacc); |
83 | return 0; |
83 | return 0; |
84 | } |
84 | } |