Home
last modified time | relevance | path

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

/hal_espressif-3.4.0/components/freemodbus/tcp_slave/port/
Dport_tcp_slave.c328 struct addrinfo xHint; in vMBTCPPortBindAddr() local
333 memset( &xHint, 0, sizeof( xHint ) ); in vMBTCPPortBindAddr()
337 xHint.ai_family = (xConfig.xIpVer == MB_PORT_IPV4) ? AF_INET : AF_INET6; in vMBTCPPortBindAddr()
338 xHint.ai_socktype = (xConfig.eMbProto == MB_PROTO_UDP) ? SOCK_DGRAM : SOCK_STREAM; in vMBTCPPortBindAddr()
340 xHint.ai_protocol = (xConfig.eMbProto == MB_PROTO_UDP) ? IPPROTO_UDP : IPPROTO_TCP; in vMBTCPPortBindAddr()
341 xHint.ai_flags = AI_NUMERICSERV; in vMBTCPPortBindAddr()
344 xHint.ai_flags |= AI_PASSIVE; in vMBTCPPortBindAddr()
346 xHint.ai_flags |= AI_CANONNAME; in vMBTCPPortBindAddr()
353 xRet = getaddrinfo(pcBindIp, pcStr, &xHint, &pxAddrList); in vMBTCPPortBindAddr()
/hal_espressif-3.4.0/components/freemodbus/tcp_master/port/
Dport_tcp_master.c453 struct addrinfo xHint; in xMBTCPPortMasterCheckHost() local
455 memset(&xHint, 0, sizeof(xHint)); in xMBTCPPortMasterCheckHost()
457 xHint.ai_family = AF_UNSPEC; in xMBTCPPortMasterCheckHost()
458 xHint.ai_flags = AI_ADDRCONFIG; // get IPV6 address if supported, otherwise IPV4 in xMBTCPPortMasterCheckHost()
463 int xRet = getaddrinfo(pcHostStr, NULL, &xHint, &pxAddrList); in xMBTCPPortMasterCheckHost()
518 struct addrinfo xHint; in xMBTCPPortMasterConnect() local
522 memset(&xHint, 0, sizeof(xHint)); in xMBTCPPortMasterConnect()
525 xHint.ai_flags = AI_ADDRCONFIG; // get IPV6 address if supported, otherwise IPV4 in xMBTCPPortMasterConnect()
526 xHint.ai_family = (xMbPortConfig.eMbIpVer == MB_PORT_IPV4) ? AF_INET : AF_INET6; in xMBTCPPortMasterConnect()
527 xHint.ai_socktype = (pxInfo->xMbProto == MB_PROTO_UDP) ? SOCK_DGRAM : SOCK_STREAM; in xMBTCPPortMasterConnect()
[all …]