mirror of
https://github.com/Lizonghang/prima.cpp.git
synced 2025-09-11 09:34:39 +00:00
fix try_connect
This commit is contained in:
parent
d1b97f798e
commit
d6c8d322cd
8 changed files with 78 additions and 50 deletions
7
src/network-utils.h
Normal file
7
src/network-utils.h
Normal 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);
|
Loading…
Add table
Add a link
Reference in a new issue