Searched refs:xListenSockFd (Results 1 – 1 of 1) sorted by relevance
327 int xListenSockFd = -1; in vMBTCPPortBindAddr() local363 xListenSockFd = (int)socket(pxCurAddr->ai_family, pxCurAddr->ai_socktype, in vMBTCPPortBindAddr()365 if (xListenSockFd < 0) in vMBTCPPortBindAddr()372 if (setsockopt(xListenSockFd, SOL_SOCKET, SO_REUSEADDR, in vMBTCPPortBindAddr()375 close(xListenSockFd); in vMBTCPPortBindAddr()376 xListenSockFd = -1; in vMBTCPPortBindAddr()380 if (bind(xListenSockFd, (struct sockaddr *)pxCurAddr->ai_addr, in vMBTCPPortBindAddr()383 close(xListenSockFd); in vMBTCPPortBindAddr()384 xListenSockFd = -1; in vMBTCPPortBindAddr()391 if (listen(xListenSockFd, MB_TCP_NET_LISTEN_BACKLOG) != 0) in vMBTCPPortBindAddr()[all …]