mirror of
https://github.com/pumpitupdev/pumptools.git
synced 2026-09-25 23:58:05 +03:00
util/sock-tcp: Add constant for invalid socket handle
This commit is contained in:
@@ -10,6 +10,8 @@
|
||||
#include "util/log.h"
|
||||
#include "util/sock-tcp.h"
|
||||
|
||||
const int INVALID_SOCK_HANDLE = -1;
|
||||
|
||||
bool util_sock_tcp_is_connectable(const char* ipv4, uint32_t timeout_ms)
|
||||
{
|
||||
char* address;
|
||||
|
||||
@@ -9,6 +9,8 @@
|
||||
#include <stdint.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
extern const int INVALID_SOCK_HANDLE;
|
||||
|
||||
bool util_sock_tcp_is_connectable(const char* ipv4, uint32_t timeout_ms);
|
||||
|
||||
bool util_sock_tcp_is_connectable2(const char* ipv4, uint16_t port, uint32_t timeout_ms);
|
||||
|
||||
Reference in New Issue
Block a user