2 Copyright (c) 2010 jimmikaelkael <jimmikaelkael@wanadoo.fr>
3 Licenced under Academic Free License version 3.0
11 /* These automatically convert the address and port to network order. */
12 #define IP_ADDR(a, b, c, d) (((d & 0xff) << 24) | ((c & 0xff) << 16) | \
13 ((b & 0xff) << 8) | ((a & 0xff)))
14 #define IP_PORT(port) (((port & 0xff00) >> 8) | ((port & 0xff) << 8))