#define MYPORT 2036 // the port users will be connecting to
#define BACKLOG 10 // how many pending connections queue will hold
typedef struct {
char unknown[3];
char amfSize[3];
char amfType[1];
char srcDest[4];
} amfHeader;
typedef struct {
char unknown[3];
int amfSize;
int amfType;
char srcDest[4];
int bodySize;
int bodyCount;
char *body;
} amfHeader_real;
typedef struct myConnections {
struct myConnections *prev;
struct myConnections *next;
int socketFD;
} myConnections_t;
extern int listenerFD;
int amfDoAccept(int);
int amfDoHandshake(int);
int sStartListener();
void sListenerThread(int);
int sAddConnection(int);