public void Stop() { m_DesiredState = DESIRED_STATE.DONT_WANT_TO_BE_CONNECTED; m_ViewerPW = ""; m_AdminPW = ""; CloseConnection(); if (m_OnConnectedStatusChange != null) { m_OnConnectedStatusChange(STATE.NOT_CONNECTED, "Connection Closed"); } }
public void Connect(String server, bool retryConnection, OnConnectStatusChange del) { m_DesiredState = DESIRED_STATE.WANT_TO_BE_CONNECTED; m_OnConnectedStatusChange = del; if (retryConnection) { StartMaintainConnectionThread(server); } else { StartOneConnectionAttemptThread(server); } }
public RCSClient(/* handleRxJpeg callback, */ APPLICATION_DATA appData) { m_AppData = appData; m_AppData.AddOnClosing(OnAppClose, APPLICATION_DATA.CLOSE_ORDER.MIDDLE); m_Log = (ErrorLog)m_AppData.Logger; m_AdminPW = ""; m_ViewerPW = ""; MessageEventGenerators = new MessageEventGeneratorClass(); // m_SendNewJpeg = callback; m_SendPacketRequests = new SEND_PACKET_REQUESTS(); m_STATE = STATE.NOT_CONNECTED; m_DesiredState = DESIRED_STATE.DONT_WANT_TO_BE_CONNECTED; m_RCSProtocol = new RCS_Protocol.RCS_Protocol(m_AppData, null); }
public RCSClient(/* handleRxJpeg callback, */ APPLICATION_DATA appData) { m_AppData = appData; m_AppData.AddOnClosing(OnAppClose, APPLICATION_DATA.CLOSE_ORDER.MIDDLE); m_Log = (ErrorLog) m_AppData.Logger; m_AdminPW = ""; m_ViewerPW =""; MessageEventGenerators = new MessageEventGeneratorClass(); // m_SendNewJpeg = callback; m_SendPacketRequests = new SEND_PACKET_REQUESTS(); m_STATE = STATE.NOT_CONNECTED; m_DesiredState = DESIRED_STATE.DONT_WANT_TO_BE_CONNECTED; m_RCSProtocol = new RCS_Protocol.RCS_Protocol(m_AppData,null); }
public void OnAppClose() { m_DesiredState = DESIRED_STATE.DONT_WANT_TO_BE_CONNECTED; CloseConnection(); }
public void Connect(String server, bool retryConnection, OnConnectStatusChange del) { m_DesiredState = DESIRED_STATE.WANT_TO_BE_CONNECTED; m_OnConnectedStatusChange = del; if (retryConnection) StartMaintainConnectionThread(server); else StartOneConnectionAttemptThread(server); }
public void Stop() { m_DesiredState = DESIRED_STATE.DONT_WANT_TO_BE_CONNECTED; m_ViewerPW = ""; m_AdminPW = ""; CloseConnection(); if (m_OnConnectedStatusChange != null) m_OnConnectedStatusChange(STATE.NOT_CONNECTED, "Connection Closed"); }