
Go to the source code of this file.
Functions | |
| void | hipcPosixUsocInit (struct HIPC_usoc *so_p, const int fdr, const int fdw) |
| Initializes a universal socket. More... | |
| enum HIPC_errno | hipcUsocRead (struct HIPC_usoc *so_p, void *buf, const size_t size) |
Reads exactly size bytes from so_p. More... | |
| enum HIPC_errno | hipcUsocWrite (struct HIPC_usoc *so_p, const void *buf, const size_t size) |
Writes exactly size bytes to so_p. More... | |
| void hipcPosixUsocInit | ( | struct HIPC_usoc * | so_p, |
| const int | fdr, | ||
| const int | fdw | ||
| ) |
Initializes a universal socket.
| so_p | Pointer to a universal socket |
| fdr | a file descriptor for reading |
| fdw | a file descriptor for writing |
Definition at line 14 of file posix_usoc.c.
References HIPC_usoc::fdr, and HIPC_usoc::fdw.
Referenced by main().

| enum HIPC_errno hipcUsocRead | ( | struct HIPC_usoc * | so_p, |
| void * | buf, | ||
| const size_t | size | ||
| ) |
Reads exactly size bytes from so_p.
| so_p | Pointer to a universal socket |
| buf | Buffer into which bytes are read |
| size | Number of bytes to be read |
Definition at line 24 of file posix_usoc.c.
References HIPC_usoc::fdr, HIPC_ERR_S_IO_READ, HIPC_SUCCESS, and hipcPosixReadExactly().

| enum HIPC_errno hipcUsocWrite | ( | struct HIPC_usoc * | so_p, |
| const void * | buf, | ||
| const size_t | size | ||
| ) |
Writes exactly size bytes to so_p.
| so_p | Pointer to a universal socket |
| buf | Buffer from which bytes are written |
| size | Number of bytes to be written |
Definition at line 36 of file posix_usoc.c.
References HIPC_usoc::fdw, HIPC_ERR_S_IO_WRITE, HIPC_SUCCESS, and hipcPosixWriteExactly().

1.8.6