Home
last modified time | relevance | path

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

/hal_espressif-3.6.0/components/freemodbus/tcp_slave/port/
Dport_tcp_slave.c185 struct sockaddr_storage xSrcAddr; in xMBTCPPortAcceptConnection() local
192 xSockId = accept(xListenSockId, (struct sockaddr *)&xSrcAddr, &xSize); in xMBTCPPortAcceptConnection()
198 if (xSrcAddr.ss_family == PF_INET) { in xMBTCPPortAcceptConnection()
199 … inet_ntoa_r(((struct sockaddr_in *)&xSrcAddr)->sin_addr.s_addr, cAddrStr, sizeof(cAddrStr) - 1); in xMBTCPPortAcceptConnection()
202 else if (xSrcAddr.ss_family == PF_INET6) { in xMBTCPPortAcceptConnection()
203 … inet6_ntoa_r(((struct sockaddr_in6 *)&xSrcAddr)->sin6_addr, cAddrStr, sizeof(cAddrStr) - 1); in xMBTCPPortAcceptConnection()