| 1628 | } |
| 1629 | |
| 1630 | int LGBM_NetworkInit(const char* machines, |
| 1631 | int local_listen_port, |
| 1632 | int listen_time_out, |
| 1633 | int num_machines) { |
| 1634 | API_BEGIN(); |
| 1635 | Config config; |
| 1636 | config.machines = Common::RemoveQuotationSymbol(std::string(machines)); |
| 1637 | config.local_listen_port = local_listen_port; |
| 1638 | config.num_machines = num_machines; |
| 1639 | config.time_out = listen_time_out; |
| 1640 | if (num_machines > 1) { |
| 1641 | Network::Init(config); |
| 1642 | } |
| 1643 | API_END(); |
| 1644 | } |
| 1645 | |
| 1646 | int LGBM_NetworkFree() { |
| 1647 | API_BEGIN(); |
nothing calls this directly
no test coverage detected