Lines Matching defs:socketFd
61 int socketFd = -1;
63 if ((socketFd = socket(AF_UNIX, SOCK_STREAM, 0)) < 0) {
71 if (::connect(socketFd, (struct sockaddr*)&addr, sizeof(addr)) < 0) {
73 if (::close(socketFd)) {
76 socketFd = -1;
80 return socketFd;
83 static inline void closeSocket(const int socketFd) {
84 if (socketFd >= 0) {
85 if(::close(socketFd)) {
92 int socketFd = createSocket();
93 if (socketFd < 0) {
109 (sent = ::send(socketFd, data.c_str() + (data.length() - remain),
118 closeSocket(socketFd);