protected override void DoConnect(SessionID sessionID, Dictionary settings) { Session session = null; try { session = Session.LookupSession(sessionID); if (!session.IsSessionTime) { return; } IPEndPoint socketEndPoint = GetNextSocketEndPoint(sessionID, settings); SetPending(sessionID); session.Log.OnEvent("Connecting to " + socketEndPoint.Address + " on port " + socketEndPoint.Port); SocketInitiatorThread t = new SocketInitiatorThread(this, session, socketEndPoint, socketSettings_); t.Start(); AddThread(t); } catch (System.Exception e) { if (null != session) { session.Log.OnEvent(e.Message); } } }
protected override void DoConnect(SessionID sessionID, Dictionary settings) { Session session = null; try { session = Session.LookupSession(sessionID); if (!session.IsSessionTime) { return; } IPEndPoint socketEndPoint = GetNextSocketEndPoint(sessionID, settings); SetPending(sessionID); session.Log.OnEvent("Connecting to " + socketEndPoint.Address + " on port " + socketEndPoint.Port); //Setup socket settings based on current section var socketSettings = socketSettings_.Clone(); socketSettings.Configure(settings); // Create a Ssl-SocketInitiatorThread if a certificate is given SocketInitiatorThread t = new SocketInitiatorThread(this, session, socketEndPoint, socketSettings); t.Start(); AddThread(t); } catch (System.Exception e) { if (null != session) { session.Log.OnEvent(e.Message); } } }
protected override void DoConnect(SessionID sessionID, Dictionary settings) { Session session = null; try { session = Session.LookupSession(sessionID); if (!session.IsSessionTime) return; IPEndPoint socketEndPoint = GetNextSocketEndPoint(sessionID, settings); SetPending(sessionID); session.Log.OnEvent("Connecting to " + socketEndPoint.Address + " on port " + socketEndPoint.Port); SocketInitiatorThread t = new SocketInitiatorThread(this, session, socketEndPoint, socketSettings_); t.Start(); AddThread(t); } catch (System.Exception e) { if (null != session) session.Log.OnEvent(e.Message); } }
protected override void DoConnect(SessionID sessionID, Dictionary settings) { Session session = null; try { session = Session.LookupSession(sessionID); if (!session.IsSessionTime) return; IPEndPoint socketEndPoint = GetNextSocketEndPoint(sessionID, settings); SetPending(sessionID); session.Log.OnEvent("Connecting to " + socketEndPoint.Address + " on port " + socketEndPoint.Port); //Setup socket settings based on current section var socketSettings = socketSettings_.Clone(); socketSettings.Configure(settings); // Create a Ssl-SocketInitiatorThread if a certificate is given SocketInitiatorThread t = new SocketInitiatorThread(this, session, socketEndPoint, socketSettings); t.Start(); AddThread(t); } catch (System.Exception e) { if (null != session) session.Log.OnEvent(e.Message); } }