ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/AnyEvent-FastPing/FastPing.xs
(Generate patch)

Comparing AnyEvent-FastPing/FastPing.xs (file contents):
Revision 1.2 by root, Sat May 17 21:47:29 2008 UTC vs.
Revision 1.4 by root, Sun Mar 29 20:07:03 2009 UTC

1#define _POSIX_C_SOURCE 200112 1#define _POSIX_C_SOURCE 200112
2#define _XOPEN_SOURCE 600 2#define _XOPEN_SOURCE 600
3#define _LARGEFILE64_SOURCE 1 3#define _LARGEFILE64_SOURCE 1
4 4
5#ifndef __APPLE__ 5#ifdef __APPLE__
6# define IPV6 0 6# define IPV6 0
7#else 7#else
8# define IPV6 1 // if you get compilation problems try to disable IPv6 8# define IPV6 1 // if you get compilation problems try to disable IPv6
9#endif 9#endif
10 10
49#define MIN_INTERVAL .000001 // minimum packet send interval, in seconds 49#define MIN_INTERVAL .000001 // minimum packet send interval, in seconds
50 50
51#define HDR_SIZE_IP4 20 51#define HDR_SIZE_IP4 20
52#define HDR_SIZE_IP6 48 52#define HDR_SIZE_IP6 48
53 53
54//TODO: xread/xwrite for atomicity? we currently rely on the fact that the pip biffersize divides exactly by pointer sizes 54//TODO: xread/xwrite for atomicity? we currently rely on the fact that the pip buffersize divides exactly by pointer sizes
55 55
56typedef uint8_t addr_t[16]; 56typedef uint8_t addr_t[16];
57 57
58typedef double tstamp; 58typedef double tstamp;
59 59

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines