Searched refs:pcStr (Results 1 – 2 of 2) sorted by relevance
/hal_espressif-3.4.0/components/freemodbus/tcp_slave/port/ |
D | port_tcp_slave.c | 188 CHAR* pcStr = NULL; in xMBTCPPortAcceptConnection() local 207 pcStr = calloc(1, strlen(cAddrStr) + 1); in xMBTCPPortAcceptConnection() 208 if (pcStr && pcIPAddr) { in xMBTCPPortAcceptConnection() 209 memcpy(pcStr, cAddrStr, strlen(cAddrStr)); in xMBTCPPortAcceptConnection() 210 pcStr[strlen(cAddrStr)] = '\0'; in xMBTCPPortAcceptConnection() 211 *pcIPAddr = pcStr; // Set IP address of connected client in xMBTCPPortAcceptConnection() 331 CHAR* pcStr = NULL; in vMBTCPPortBindAddr() local 349 if (asprintf(&pcStr, "%u", xConfig.usPort) == -1) { in vMBTCPPortBindAddr() 353 xRet = getaddrinfo(pcBindIp, pcStr, &xHint, &pxAddrList); in vMBTCPPortBindAddr() 354 free(pcStr); in vMBTCPPortBindAddr() [all …]
|
/hal_espressif-3.4.0/components/freemodbus/tcp_master/port/ |
D | port_tcp_master.c | 451 CHAR* pcStr = &cStr[0]; in xMBTCPPortMasterCheckHost() local 472 pcStr = ip4addr_ntoa_r(ip_2_ip4(&xTargetAddr), cStr, sizeof(cStr)); in xMBTCPPortMasterCheckHost() 478 pcStr = ip6addr_ntoa_r(ip_2_ip6(&xTargetAddr), cStr, sizeof(cStr)); in xMBTCPPortMasterCheckHost() 484 ESP_LOGI(TAG, "Host[IP]: \"%s\"[%s]", pxAddrList->ai_canonname, pcStr); in xMBTCPPortMasterCheckHost() 516 CHAR* pcStr = NULL; in xMBTCPPortMasterConnect() local 531 if (asprintf(&pcStr, "%u", xMbPortConfig.usPort) == -1) { in xMBTCPPortMasterConnect() 536 int xRet = getaddrinfo(pxInfo->pcIpAddr, pcStr, &xHint, &pxAddrList); in xMBTCPPortMasterConnect() 537 free(pcStr); in xMBTCPPortMasterConnect() 547 pcStr = ip4addr_ntoa_r(ip_2_ip4(&xTargetAddr), cStr, sizeof(cStr)); in xMBTCPPortMasterConnect() 553 pcStr = ip6addr_ntoa_r(ip_2_ip6(&xTargetAddr), cStr, sizeof(cStr)); in xMBTCPPortMasterConnect()
|