ascii-chat
Binary v0.15.83-53-gb711d8720
Library lib/v0.3.2-701-gb711d8720
Video chat in your terminal
Loading...
Searching...
No Matches
pipe.h File Reference

Go to the source code of this file.

Macros

#define INVALID_PIPE_VALUE   (-1)
 Invalid pipe value (POSIX: -1).

Typedefs

typedef int pipe_t
 Pipe handle type (POSIX: int file descriptor).

Functions

pipe_t platform_pipe_connect (const char *path)
 Connect to an agent via named pipe (Windows) or Unix socket (POSIX).
int platform_pipe_close (pipe_t pipe)
 Close a pipe connection.
ssize_t platform_pipe_read (pipe_t pipe, void *buf, size_t len)
 Read data from a pipe.
ssize_t platform_pipe_write (pipe_t pipe, const void *buf, size_t len)
 Write data to a pipe.
bool platform_pipe_is_valid (pipe_t pipe)
 Check if a pipe handle is valid.