P2P dll c++ ,
Static emReturnType SetAppType (emAppType AppType);//set the program type, server emAppType_Server or client emAppType_Client
Static emReturnType SetClientCallback (IMsgCallback *pMsgCallback);//set the callback class, the callback class inherit IMsgCallback interface
Static emReturnType Startup ();//open network
Static emReturnType Cleanup ();//close the network
Server is the following function server call
Static emReturnType BeginService (unsigned short nPort);//if the server calls this function open service, nPort: port number
Static emReturnType EndService ();//when the server exits, call this function to close the service
Client the following function is a client call
Static emReturnType Logon (LOGONINFO* pLogonInfo);//function to log on to the server. PLogonInfo: the logon information, see P2PHeaderDef.h->LOGONINFO
Static emReturnType Logout ();//log out server
St