internal static int DSGetModemByPosition(uint pos, ref DtuInfoStruct infostruct) { infostruct.m_conn_time = 0; infostruct.m_dtuId = BitConverter.GetBytes(1953719668); infostruct.m_dynip = BitConverter.GetBytes(0); infostruct.m_phoneno = BitConverter.GetBytes(1953719668); infostruct.m_refresh_time = 0; return(1); }
public int GetDtuByPosition(uint pos, ref IInfoStruct pDtuInfo) { var infostruct = new DtuInfoStruct(); var result = DTUSimWrapper.DSGetModemByPosition(pos, ref infostruct); if (pDtuInfo == null) { pDtuInfo = new InfoStruct(); } pDtuInfo.ConnectionTime = infostruct.m_conn_time; pDtuInfo.DynamicIp = infostruct.m_dynip; pDtuInfo.Id = infostruct.m_dtuId; pDtuInfo.PhoneNo = infostruct.m_phoneno; pDtuInfo.RefreshTime = infostruct.m_refresh_time; return(result); }