ServerDefines.h 844 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. #pragma once
  2. #define CHUNK_WRITE_SIZE 65536
  3. class MyEnums
  4. {
  5. public:
  6. enum eSendType{START, DATA, DATA_START, DATA_END, END, EXIT, REQUEST_FILES};
  7. };
  8. class CSendInfo
  9. {
  10. public:
  11. CSendInfo()
  12. {
  13. memset(this, 0, sizeof(*this));
  14. m_nSize = sizeof(CSendInfo);
  15. m_nVersion = 1;
  16. m_lParameter1 = -1;
  17. m_lParameter2 = -1;
  18. m_manualSend = 0;
  19. }
  20. int m_nSize;
  21. MyEnums::eSendType m_Type;
  22. int m_nVersion;
  23. CHAR m_cIP[20];
  24. CHAR m_cComputerName[MAX_COMPUTERNAME_LENGTH + 1];
  25. CHAR m_cDesc[250];
  26. long m_lParameter1;
  27. long m_lParameter2;
  28. CHAR m_md5[32];
  29. char m_manualSend;
  30. char m_cExtra[17];
  31. };
  32. class CDittoCF_HDROP
  33. {
  34. public:
  35. CDittoCF_HDROP()
  36. {
  37. memset(m_cIP, 0, sizeof(m_cIP));
  38. memset(m_cComputerName, 0, sizeof(m_cComputerName));
  39. }
  40. char m_cIP[25];
  41. char m_cComputerName[MAX_COMPUTERNAME_LENGTH + 1];
  42. };