fix try_connect

This commit is contained in:
DeEMO 2025-06-03 15:02:59 +08:00 committed by DeEMO
parent d1b97f798e
commit d6c8d322cd
8 changed files with 78 additions and 50 deletions

7
src/network-utils.h Normal file
View file

@ -0,0 +1,7 @@
#pragma once
#include <string>
typedef unsigned int uint32_t;
bool isPortOpen(const std::string& ip, uint32_t port, int timeout_sec = 2);