Example #1
0
        /// <summary>
        /// Direct connection to the sender has failed, attempt a proxy redirect
        /// </summary>
        private void FallbackToStage2Connection()
        {
            directConnectionMethod = DirectConnectionMethod.Proxied;
            _sequence = RendezvousSequence.Stage2;
            ProxySocketConnector connector = new ProxySocketConnector(parent, parent.ServerSettings.IcqProxyServer, parent.ServerSettings.LoginPort, Ssl);

            connector.ConnectionFailed += delegate
            {
                Logging.WriteString("FallbackToStage2Connection failed");
                DisconnectFromServer(true);
            };
            connector.ConnectionComplete += delegate(object sender, EventArgs e)
            {
                this.socket = (sender as ProxySocketConnector).Socket;
                InitAolProxyConnectFinished();
            };
            connector.BeginConnect();
        }
Example #2
0
 /// <summary>
 /// Returns the ushort representation of a <see cref="RendezvousSequence"/>
 /// </summary>
 public static ushort UshortFromSequence(RendezvousSequence value)
 {
     return((ushort)value);
 }
Example #3
0
 /// <summary>
 /// Direct connection to the sender has failed, attempt a proxy redirect
 /// </summary>
 private void FallbackToStage2Connection()
 {
     directConnectionMethod = DirectConnectionMethod.Proxied;
     _sequence = RendezvousSequence.Stage2;
     ProxySocketConnector connector = new ProxySocketConnector(parent, parent.ServerSettings.IcqProxyServer, parent.ServerSettings.LoginPort, Ssl);
     connector.ConnectionFailed += delegate
     {
         Logging.WriteString("FallbackToStage2Connection failed");
         DisconnectFromServer(true);
     };
     connector.ConnectionComplete += delegate(object sender, EventArgs e)
     {
         this.socket = (sender as ProxySocketConnector).Socket;
         InitAolProxyConnectFinished();
     };
     connector.BeginConnect();
 }
Example #4
0
 /// <summary>
 /// Returns the ushort representation of a <see cref="RendezvousSequence"/>
 /// </summary>
 public static ushort UshortFromSequence(RendezvousSequence value)
 {
     return (ushort) value;
 }