Lines Matching refs:pipe
45 pipe_openSocket( Pipe* pipe, int port ) in pipe_openSocket() argument
50 pipe->socket = -1; in pipe_openSocket()
70 pipe->socket = fd; in pipe_openSocket()
75 pipe_openQemuPipe( Pipe* pipe, const char* pipename ) in pipe_openQemuPipe() argument
77 pipe->socket = qemu_pipe_open(pipename); in pipe_openQemuPipe()
78 if (pipe->socket < 0) { in pipe_openQemuPipe()
86 pipe_send( Pipe* pipe, const void* buff, size_t bufflen ) in pipe_send() argument
91 ret = write(pipe->socket, ptr, bufflen); in pipe_send()
109 pipe_recv( Pipe* pipe, void* buff, size_t bufflen ) in pipe_recv() argument
114 ret = read(pipe->socket, buff, bufflen); in pipe_recv()
131 pipe_close( Pipe* pipe ) in pipe_close() argument
133 if (pipe->socket >= 0) { in pipe_close()
134 close(pipe->socket); in pipe_close()
135 pipe->socket = -1; in pipe_close()