Home
last modified time | relevance | path

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

/hal_espressif-3.4.0/components/freemodbus/tcp_slave/port/
Dport_tcp_slave.c131 xConfig.pxMbClientInfo = calloc(MB_TCP_PORT_MAX_CONN + 1, sizeof(MbClientInfo_t*)); in xMBTCPPortInit()
136 for(int idx = 0; idx < MB_TCP_PORT_MAX_CONN; xConfig.pxMbClientInfo[idx] = NULL, idx++); in xMBTCPPortInit()
453 for (i = 0; i < MB_TCP_PORT_MAX_CONN; i++) { in vMBTCPPortServerTask()
480 if (FD_ISSET(xListenSock, &xReadSet) && xConfig.usClientCount < MB_TCP_PORT_MAX_CONN) { in vMBTCPPortServerTask()
483 for (i = 0; i < MB_TCP_PORT_MAX_CONN; i++) { in vMBTCPPortServerTask()
491 if (xConfig.pxMbClientInfo[MB_TCP_PORT_MAX_CONN] == NULL) { in vMBTCPPortServerTask()
492 …(TAG, "Fail to accept connection %d, only %d connections supported.", i + 1, MB_TCP_PORT_MAX_CONN); in vMBTCPPortServerTask()
494 … xConfig.pxMbClientInfo[MB_TCP_PORT_MAX_CONN] = pxClientInfo; // set last connection info in vMBTCPPortServerTask()
525 xConfig.pxMbClientInfo[MB_TCP_PORT_MAX_CONN] = NULL; in vMBTCPPortServerTask()
534 for (i = 0; i < MB_TCP_PORT_MAX_CONN; i++) { in vMBTCPPortServerTask()
[all …]
/hal_espressif-3.4.0/components/freemodbus/tcp_master/port/
Dport_tcp_master.c108 xMbPortConfig.pxMbSlaveInfo = calloc(MB_TCP_PORT_MAX_CONN, sizeof(MbSlaveInfo_t*)); in xMBMasterTCPPortInit()
113 for(int idx = 0; idx < MB_TCP_PORT_MAX_CONN; xMbPortConfig.pxMbSlaveInfo[idx] = NULL, idx++); in xMBMasterTCPPortInit()
611 for (int xIndex = 0; (xIndex < MB_TCP_PORT_MAX_CONN); xIndex++) { in xMBTCPPortMasterGetSlaveReady()
647 } while (pxInfo && (xCount < MB_TCP_PORT_MAX_CONN)); in xMBTCPPortMasterCheckConnState()
681 if (xMbPortConfig.usMbSlaveInfoCount > MB_TCP_PORT_MAX_CONN) { in vMBTCPPortMasterTask()
682 ESP_LOGE(TAG, "Exceeds maximum connections limit=%d.", MB_TCP_PORT_MAX_CONN); in vMBTCPPortMasterTask()
727 for (UCHAR ucCnt = 0; (ucCnt < MB_TCP_PORT_MAX_CONN); ucCnt++) { in vMBTCPPortMasterTask()
908 for (USHORT ucCnt = 0; ucCnt < MB_TCP_PORT_MAX_CONN; ucCnt++) { in vMBMasterTCPPortDisable()
/hal_espressif-3.4.0/components/freemodbus/port/
Dport.h81 #define MB_TCP_PORT_MAX_CONN (CONFIG_FMB_TCP_PORT_MAX_CONN) macro
/hal_espressif-3.4.0/components/freemodbus/tcp_master/modbus_controller/
Dmbc_tcp_master.c79 MB_MASTER_CHECK((mbm_opts->mbm_slave_list_count < (MB_TCP_PORT_MAX_CONN - 1)), in mbc_tcp_master_add_slave()
80 … ESP_ERR_INVALID_STATE, "mb max number of slaves < %d.", MB_TCP_PORT_MAX_CONN); in mbc_tcp_master_add_slave()