2017-02-02 10:18:34 +00:00
|
|
|
#ifndef _LIB_H_
|
|
|
|
|
|
|
|
#define _LIB_H_
|
|
|
|
|
|
|
|
|
|
|
|
#define BUFSIZE 20
|
|
|
|
|
|
|
|
|
|
|
|
// debug flags
|
|
|
|
# define DEBUG 1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/************************************************
|
|
|
|
**** Signatures ****
|
|
|
|
************************************************/
|
|
|
|
|
|
|
|
/* CREATES A UDP SOCKET
|
|
|
|
*
|
|
|
|
* @port<int> Port to use (if 0: random)
|
|
|
|
*
|
|
|
|
* @return socket<socket> Socket descriptor or -1 if error
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
int createUPDSocket(int port);
|
|
|
|
|
|
|
|
#endif
|