blob: 0003e49dd7f0b55cb7b20097d341dfa2b67d5544 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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_
|