aboutsummaryrefslogtreecommitdiff
path: root/src/parsec/include/net_udpdf.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/parsec/include/net_udpdf.h')
-rw-r--r--src/parsec/include/net_udpdf.h31
1 files changed, 31 insertions, 0 deletions
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_
+
+