Home
last modified time | relevance | path

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

/hal_espressif-3.4.0/components/freemodbus/tcp_slave/port/
Dport_tcp_slave.c330 struct addrinfo* pxCurAddr; in vMBTCPPortBindAddr() local
361 for (pxCurAddr = pxAddrList; pxCurAddr != NULL; pxCurAddr = pxCurAddr->ai_next) in vMBTCPPortBindAddr()
363 xListenSockFd = (int)socket(pxCurAddr->ai_family, pxCurAddr->ai_socktype, in vMBTCPPortBindAddr()
364 pxCurAddr->ai_protocol); in vMBTCPPortBindAddr()
380 if (bind(xListenSockFd, (struct sockaddr *)pxCurAddr->ai_addr, in vMBTCPPortBindAddr()
381 (socklen_t)pxCurAddr->ai_addrlen) != 0 ) in vMBTCPPortBindAddr()
400 pcStr = (pxCurAddr->ai_canonname == NULL) ? (CHAR*)"\0" : pxCurAddr->ai_canonname; in vMBTCPPortBindAddr()
/hal_espressif-3.4.0/components/freemodbus/tcp_master/port/
Dport_tcp_master.c520 struct addrinfo* pxCurAddr; in xMBTCPPortMasterConnect() local
543 for (pxCurAddr = pxAddrList; pxCurAddr != NULL; pxCurAddr = pxCurAddr->ai_next) { in xMBTCPPortMasterConnect()
544 if (pxCurAddr->ai_family == AF_INET) { in xMBTCPPortMasterConnect()
545 struct in_addr addr4 = ((struct sockaddr_in *) (pxCurAddr->ai_addr))->sin_addr; in xMBTCPPortMasterConnect()
550 else if (pxCurAddr->ai_family == AF_INET6) { in xMBTCPPortMasterConnect()
551 struct in6_addr addr6 = ((struct sockaddr_in6 *) (pxCurAddr->ai_addr))->sin6_addr; in xMBTCPPortMasterConnect()
555 ((struct sockaddr_in6 *) (pxCurAddr->ai_addr))->sin6_scope_id = in xMBTCPPortMasterConnect()
560 … pxInfo->xSockId = socket(pxCurAddr->ai_family, pxCurAddr->ai_socktype, pxCurAddr->ai_protocol); in xMBTCPPortMasterConnect()
575 … xErr = connect(pxInfo->xSockId, (struct sockaddr*)pxCurAddr->ai_addr, pxCurAddr->ai_addrlen); in xMBTCPPortMasterConnect()