| 94 | |
| 95 | char STR[] = "!@#$%^&*()_+"; |
| 96 | void rpc_server_write(IStream* s, uint64_t tag) |
| 97 | { |
| 98 | rpc::Header header; |
| 99 | header.tag = tag; |
| 100 | header.size = LEN(STR); |
| 101 | |
| 102 | IOVector iov; |
| 103 | iov.push_back(&header, sizeof(header)); |
| 104 | iov.push_back(STR, LEN(STR)); |
| 105 | |
| 106 | s->writev(iov.iovec(), iov.iovcnt()); |
| 107 | } |
| 108 | |
| 109 | void* rpc_server(void* args_) |
| 110 | { |