Clone of PhatAC @ https://github.com/floaterxk/PhatAC

Server.h 439B

1234567891011121314151617181920212223242526272829303132333435
  1. #pragma once
  2. #include "Client.h"
  3. #include "FragStack.h"
  4. class CPhatServer
  5. {
  6. public:
  7. CPhatServer(in_addr, u_short);
  8. ~CPhatServer();
  9. void Tick(void);
  10. void KickClient(WORD);
  11. void BanClient(WORD);
  12. void SystemBroadcast(char *text);
  13. u_short GetPort();
  14. private:
  15. void InitializeSocket(u_short port);
  16. UINT64 m_lastframe;
  17. UINT64 m_frames;
  18. SOCKET m_sockets[10];
  19. int m_socketCount;
  20. in_addr m_hostaddr;
  21. u_short m_hostport;
  22. };