Lines Matching refs:socketFd
88 int socketFd = createSocket(); in sendEvent() local
89 if (socketFd < 0) { in sendEvent()
98 (sent = ::send(socketFd, data.c_str() + (data.length() - remain), in sendEvent()
107 closeSocket(socketFd); in sendEvent()
114 int socketFd = -1; in createSocket() local
116 if ((socketFd = socket(AF_UNIX, SOCK_STREAM, 0)) < 0) { in createSocket()
124 if (::connect(socketFd, (struct sockaddr*)&addr, sizeof(addr)) < 0) { in createSocket()
126 if (::close(socketFd)) { in createSocket()
129 socketFd = -1; in createSocket()
133 return socketFd; in createSocket()
136 void XtraSystemStatusObserver::closeSocket(const int socketFd) { in closeSocket() argument
137 if (socketFd >= 0) { in closeSocket()
138 if(::close(socketFd)) { in closeSocket()