Home
last modified time | relevance | path

Searched refs:clientFd (Results 1 – 3 of 3) sorted by relevance

/kernel/liteos_a/net/telnet/src/
Dtelnet_loop.c293 STATIC INT32 TelnetClientPrepare(INT32 clientFd) in TelnetClientPrepare() argument
307 g_telnetClientFd = clientFd; in TelnetClientPrepare()
308 if (TelnetDevInit(clientFd) != 0) { in TelnetClientPrepare()
315 (VOID)WriteToFd(clientFd, (CHAR *)doEcho, sizeof(doEcho)); in TelnetClientPrepare()
316 (VOID)WriteToFd(clientFd, (CHAR *)doNaws, sizeof(doNaws)); in TelnetClientPrepare()
317 (VOID)WriteToFd(clientFd, (CHAR *)willEcho, sizeof(willEcho)); in TelnetClientPrepare()
318 (VOID)WriteToFd(clientFd, (CHAR *)willSga, sizeof(willSga)); in TelnetClientPrepare()
321 if (setsockopt(clientFd, SOL_SOCKET, SO_KEEPALIVE, (VOID *)&keepAlive, sizeof(keepAlive)) < 0) { in TelnetClientPrepare()
324 if (setsockopt(clientFd, IPPROTO_TCP, TCP_KEEPIDLE, (VOID *)&keepIdle, sizeof(keepIdle)) < 0) { in TelnetClientPrepare()
327 …if (setsockopt(clientFd, IPPROTO_TCP, TCP_KEEPINTVL, (VOID *)&keepInterval, sizeof(keepInterval)) … in TelnetClientPrepare()
[all …]
Dtelnet_dev.c267 if (telnetDev->clientFd != 0) { in TelnetWrite()
275 ret = send(telnetDev->clientFd, buf, bufLen, 0); in TelnetWrite()
306 telnetDev->clientFd = (INT32)arg; in TelnetIoctl()
376 INT32 TelnetDevInit(INT32 clientFd) in TelnetDevInit() argument
380 if (clientFd < 0) { in TelnetDevInit()
389 ret = ioctl(STDIN_FILENO, CFG_TELNET_SET_FD, clientFd); in TelnetDevInit()
/kernel/liteos_a/net/telnet/include/
Dtelnet_dev.h64 INT32 clientFd; member