Lines Matching refs:sock
124 int sock = -1;
127 sock = socket(AF_UNIX, SOCK_STREAM, 0);
128 CHECK_TRUE(sock != -1, false, "StartServer FAIL create socket ERR : %d", errno);
138 CHECK_TRUE(bind(sock, (struct sockaddr*)&addr, sizeof(struct sockaddr_un)) == 0, close(sock) != 0,
145 sock = GetControlSocket(addrname.c_str());
146 CHECK_TRUE(sock != -1, false, "StartServer FAIL GetControlSocket return : %d", sock);
149 CHECK_TRUE(listen(sock, UNIX_SOCKET_LISTEN_COUNT) != -1, close(sock) != 0 && unlink(addrname.c_str()) == 0,
152 socketHandle_ = sock;