util/sock-tcp: Add constant for invalid socket handle

This commit is contained in:
icex2
2021-01-17 01:34:21 +01:00
parent abb383995a
commit eac14dd673
2 changed files with 4 additions and 0 deletions
+2
View File
@@ -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;
+2
View File
@@ -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);