private void LogoutAdpsServer() { if (m_loginIDAdps > 0) { IVXProtocol.AdpsSdk_Logout(m_loginIDAdps); } m_loginIDAdps = 0; }
private bool LoginAdpsServer(string ip, uint port) { if (m_loginIDAdps > 0) { IVXProtocol.AdpsSdk_Logout(m_loginIDAdps); } IVXProtocol.AdpsSdk_Login(ip, (ushort)port, out m_loginIDAdps); string ver = IVXProtocol.AdpsSdk_GetSdkVersion(); return(m_loginIDAdps > 0); }