12345678910111213141516171819202122232425262728293031 |
- //---------------------------------------------------------------------------
- #pragma hdrstop
- //---------------------------------------------------------------------------
- #include "CenterCommF.h"
- #include "CenterProtocolF.h"
- #include "DMNetServerF.h"
- //---------------------------------------------------------------------------
- #include <winsock2.h>
- //---------------------------------------------------------------------------
- PROCESS_COMMUNICATION_STRUCT g_Process;
- //---------------------------------------------------------------------------
- #pragma package(smart_init)
- DWORD ip2ulong(char *AIp)
- {
- return inet_addr(AIp);
- }
- //---------------------------------------------------------------------------
- char *ulong2ip(DWORD AIp)
- {
- struct in_addr paddr;
- paddr.S_un.S_addr = AIp;
- return inet_ntoa(paddr);
- }
- //---------------------------------------------------------------------------
|