Version 1.08 with public source code release.

This commit is contained in:
icex2
2020-10-03 20:56:55 +02:00
parent 656148121d
commit 762bf140c0
555 changed files with 55502 additions and 3 deletions
+17
View File
@@ -0,0 +1,17 @@
#ifndef UTIL_NET_H
#define UTIL_NET_H
#include <stdbool.h>
#include <stdint.h>
/**
* Split an ipv4 string (e.g. 127.0.0.1:22 or just 127.0.0.1) into address and port
*
* @param str String to split
* @param address Address part (must be free'd by caller)
* @param port Port part (or -1 if it doesn't exist)
* @return True if successful, false on format error
*/
bool util_net_split_ipv4_str(const char* str, char** address, uint16_t* port);
#endif