Home | History | Annotate | Download | only in libqemu

Lines Matching refs:Pipe

45 pipe_openSocket( Pipe*  pipe, int port )
50 pipe->socket = -1;
70 pipe->socket = fd;
75 pipe_openQemuPipe( Pipe* pipe, const char* pipename )
77 pipe->socket = qemu_pipe_open(pipename);
78 if (pipe->socket < 0) {
79 fprintf(stderr, "%s: Could not open '%s' pipe: %s\n", __FUNCTION__, pipename, strerror(errno));
86 pipe_send( Pipe* pipe, const void* buff, size_t bufflen )
91 ret = write(pipe->socket, ptr, bufflen);
109 pipe_recv( Pipe* pipe, void* buff, size_t bufflen )
114 ret = read(pipe->socket, buff, bufflen);
131 pipe_close( Pipe* pipe )
133 if (pipe->socket >= 0) {
134 close(pipe->socket);
135 pipe->socket = -1;