From c068f22329d5cc722622a2183bbb22eef2093df7 Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Mon, 24 Aug 2026 11:16:07 +0200 Subject: initial import --- src/parsec/include/net_udpdf.h | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 src/parsec/include/net_udpdf.h (limited to 'src/parsec/include/net_udpdf.h') diff --git a/src/parsec/include/net_udpdf.h b/src/parsec/include/net_udpdf.h new file mode 100644 index 0000000..0003e49 --- /dev/null +++ b/src/parsec/include/net_udpdf.h @@ -0,0 +1,31 @@ +/* + * PARSEC HEADER: net_udpdf.h + */ + +#ifndef _NET_UDPDF_H_ +#define _NET_UDPDF_H_ + +#include "net_ports.h" + +// default timeout value for connection to server ----------------------------- +// +#define DEFAULT_TIMEOUT_SERVER_CONNECTION 10 * FRAME_MEASURE_TIMEBASE + + +// external functions --------------------------------------------------------- +// +void UDP_StoreNodePort( node_t *node, word port ); +word UDP_GetNodePort( node_t *node ); +int NET_ResolveHostName( const char* hostname, char* ipaddress, node_t* node ); + + +// UDP packet platform specific functions ------------------------------------- +// +int UDPs_GetLocalIP(); +void UDPs_GetLocalBroadcast(); +int UDPs_InitOSNetAPI(); +void UDPs_KillOSNetAPI(); + +#endif // _NET_UDPDF_H_ + + -- cgit v1.2.3