Changeset 71780e0 in mainline for uspace/lib/hound/src/protocol.c
- Timestamp:
- 2013-03-23T13:12:07Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a4165561
- Parents:
- 5ae1c51
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/hound/src/protocol.c
r5ae1c51 r71780e0 225 225 226 226 ipc_callid_t callid; 227 ipc_call_t call; 227 228 size_t size = 0; 228 while (async_data_write_receive (&callid, &size)) {229 while (async_data_write_receive_call(&callid, &call, &size)) { 229 230 char *buffer = malloc(size); 230 231 if (!buffer) { … … 236 237 server_iface->stream_data_write(stream, buffer, size); 237 238 } else { 238 // TODO did answering fail?239 239 async_answer_0(callid, ret); 240 240 } 241 241 } 242 //TODO we assume that the fail was caused by IPC_M_HOUND_STREAM_EXIT 243 async_answer_0(callid, EOK); 244 return EOK; 242 //TODO drain? 243 const int ret = IPC_GET_IMETHOD(call) == IPC_M_HOUND_STREAM_EXIT 244 ? EOK : EINVAL; 245 246 async_answer_0(callid, ret); 247 return ret; 245 248 } 246 249
Note:
See TracChangeset
for help on using the changeset viewer.