4 #define SWIFT_PORT 8080
5 #define PACKET_SIZE 4*1024
9 printf("%s:%d: ", __func__, __LINE__); \
17 printf("%s:%d: ", __func__, __LINE__); \
24 #define Dprintf(msg,...) printf("[%s]:%d" msg, __FILE__, __LINE__, ##__VA_ARGS__)
26 #define Dprintf(msg,...) /* do nothing */
29 typedef struct swift {
31 struct sockaddr_in socketListenerAddr;
35 void closeSwift(Swift);
38 int recvfromSwift (Swift, void *, size_t, int, struct sockaddr *, socklen_t *);
39 int bindSwift(Swift, const struct sockaddr *, socklen_t);