1
0
mirror of https://github.com/haiwen/libsearpc.git synced 2025-09-01 21:07:24 +00:00

named pipe transport: Added pipe client and pipe server.

This commit is contained in:
Shuai Lin
2016-05-19 11:31:45 +08:00
parent 1b6b5b8d9f
commit 0cac14f39f
6 changed files with 402 additions and 15 deletions

View File

@@ -58,3 +58,8 @@ inline static json_int_t json_array_get_int_element (json_t *array, size_t index
return json_integer_value (json_array_get (array, index));
}
// Write "n" bytes to a descriptor.
ssize_t pipe_write_n(int fd, const void *vptr, size_t n);
// Read "n" bytes from a descriptor.
ssize_t pipe_read_n(int fd, void *vptr, size_t n);