Searched refs:listenFd (Results 1 – 1 of 1) sorted by relevance
254 INT32 listenFd; in TelnetdInit() local258 listenFd = socket(AF_INET, SOCK_STREAM, 0); in TelnetdInit()259 if (listenFd == -1) { in TelnetdInit()265 if (setsockopt(listenFd, SOL_SOCKET, SO_REUSEADDR, &reuseAddr, sizeof(reuseAddr)) != 0) { in TelnetdInit()275 if (bind(listenFd, (const struct sockaddr *)&inTelnetAddr, sizeof(struct sockaddr_in)) == -1) { in TelnetdInit()280 if (listen(listenFd, TELNET_LISTEN_BACKLOG) == -1) { in TelnetdInit()285 return listenFd; in TelnetdInit()288 (VOID)close(listenFd); in TelnetdInit()455 STATIC VOID TelnetdAcceptLoop(INT32 listenFd) in TelnetdAcceptLoop() argument462 g_telnetListenFd = listenFd; in TelnetdAcceptLoop()[all …]