@ -15,11 +15,17 @@
#include <string.h>
#include <unistd.h>
#include <errno.h>
#include <sys/param.h>
#ifdef __APPLE__
#include <machine/endian.h>
#else
#ifdef BSD /* depends on sys/param.h */
#include <sys/endian.h>
#include <endian.h>
#endif
/**
* This code uses the WebSocket specification from RFC 6455.