Searched refs:__sock (Results 1 – 6 of 6) sorted by relevance
/haiku/src/add-ons/print/transports/shared/ |
H A D | Socket.cpp | 22 : __sock(-1), __is(NULL), __os(NULL), __error(false) in Socket() 33 : __sock(-1), __is(NULL), __os(NULL), __error(false) in Socket() 72 if (__sock == -1 && !__error) { in open() 92 if ((__sock = socket(AF_INET, SOCK_STREAM, 0)) == -1) { in open() 101 if (::bind(__sock, (sockaddr *)&cin, sizeof(cin)) != 0) { in open() 103 ::close(__sock); in open() 104 __sock = -1; in open() 109 if (::connect(__sock, (sockaddr *)&(sin), sizeof(sin)) != 0) { in open() 111 ::close(__sock); in open() 112 __sock = -1; in open() [all …]
|
H A D | SocketStream.cpp | 21 : streambuf(), __sock(sock), __alsize(n), __pu(NULL), __po(NULL) in socketstreambuf() 45 bytes = __sock->read(__pu, __alsize); in underflow() 81 bytes = __sock->write(buffer, length); in sync()
|
H A D | Socket.h | 45 int __sock; variable
|
H A D | SocketStream.h | 22 Socket *__sock;
|
/haiku/src/add-ons/print/transports/ipp/ |
H A D | HttpURLConnection.cpp | 53 __sock = NULL; in HttpURLConnection() 64 if (__sock) { in ~HttpURLConnection() 65 delete __sock; in ~HttpURLConnection() 81 __sock->close(); in disconnect() 109 return __sock->getInputStream(); in getInputStream() 117 return __sock->getOutputStream(); in getOutputStream() 144 __sock = new Socket(url.Host(), port); in connect() 145 if (__sock->fail()) { in connect() 146 __error_msg = __sock->getLastError(); in connect() 253 __error_msg = __sock->getLastError(); in getResponse()
|
H A D | HttpURLConnection.h | 125 Socket *__sock; variable
|