#ifndef server_H #define server_H // Comms includes util.hpp #include "comms.hpp" void SetNonBlockIO(int fd); void RemoveConnection(int i); int Send_NonBlocking(int sockFD, BYTE *data, struct CONN_STAT *pStat, struct pollfd *pPeer); int Recv_NonBlocking(int sockFD, BYTE *data, struct CONN_STAT *pStat, struct pollfd *pPeer); int processReception(int i); void doServerCommand(int i); void sendMessageToId(int id, bool reqLoggedIn, Header header, char *message); void sendMessageToAllLoggedIn(Header header, char *message); void sendMessageToAllLoggedInExceptSender(int senderID, Header header, char *message); void sendMessageToName(char *name, Header header, char *message); void prepareMessage(int i, Header header, char *message); void printServerCommand(int i); void DoServer(int svrPort); #endif