Definition at line 63 of file pipe.cpp.
◆ Rep()
◆ close()
| void Pipe::Rep::close |
( |
int & |
fd | ) |
|
|
private |
Definition at line 75 of file pipe.cpp.
76{
77#ifdef WIN32
78 if (fd != -1)
79 ::closesocket(fd);
80#else
81 if (fd != -1)
83#endif
84 fd = -1;
85}
References close().
Referenced by close().
◆ nonblock()
| bool Pipe::Rep::nonblock |
( |
int |
s | ) |
|
|
private |
Definition at line 93 of file pipe.cpp.
94{
95#ifdef WIN32
96 unsigned long tru = 1;
97 if (ioctlsocket(s, FIONBIO, &tru) < 0)
98 return false;
99#else
100 if (fcntl(s, F_SETFL, O_NONBLOCK) < 0)
101 return false;
102#ifndef MSG_NOSIGNAL
103 signal (SIGPIPE, SIG_IGN);
104#endif
105#endif
106 return true;
107}
◆ Pipe
◆ m_fd
| int metaproxy_1::Pipe::Rep::m_fd[2] |
|
private |
◆ m_socket
| int metaproxy_1::Pipe::Rep::m_socket |
|
private |
The documentation for this class was generated from the following file: