source: timediff/timediff.h@ 405

Last change on this file since 405 was 116, checked in by Rick van der Zwet, 15 years ago

Timediff hack

File size: 556 bytes
RevLine 
[116]1/**
2 * Rick van der Zwet <info@rickvanderzwet.nl>
3 * Licence: BSD
4 * UDP handshake taken from http://www.abc.se/~m6695/udp.html
5 */
6
7#include <stdio.h>
8#include <time.h>
9#include <sys/time.h>
10#include <stdlib.h>
11
12#include <arpa/inet.h>
13#include <netinet/in.h>
14#include <sys/types.h>
15#include <sys/socket.h>
16#include <unistd.h>
17#include <string.h>
18
19#define BUFLEN 512
20#define NPACK 10
21#define PORT 9930
22#define PORT_CLIENT 9931
23//#define SRV_IP "127.0.0.1"
24#define SRV_IP "192.168.42.1"
25
26struct timeval_t {
27 uint32_t tv_sec;
28 uint32_t tv_usec;
29 };
Note: See TracBrowser for help on using the repository browser.