private bool LoginRiasServer(string ip, uint port) { if (m_loginIDRias > 0) { IVXProtocol.IasSdk_Logout(m_loginIDRias); } IVXProtocol.IasSdk_Login(ip, (ushort)port, out m_loginIDRias); string ver = IVXProtocol.IasSdk_GetServerVersion(m_loginIDRias); return(m_loginIDRias > 0); }
public bool LoginServer(string ip, uint port) { if (m_loginID > 0) { IVXProtocol.IasSdk_Logout(m_loginID); } IVXProtocol.IasSdk_Login(ip, (ushort)port, out m_loginID); string ver = IVXProtocol.IasSdk_GetServerVersion(m_loginID); return(m_loginID > 0); }