Exemple #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();
        }
 /// <summary>
 /// Returns the ushort representation of a <see cref="RendezvousSequence"/>
 /// </summary>
 public static ushort UshortFromSequence(RendezvousSequence value)
 {
     return((ushort)value);
 }
Exemple #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();
 }
Exemple #4
0
 /// <summary>
 /// Returns the ushort representation of a <see cref="RendezvousSequence"/>
 /// </summary>
 public static ushort UshortFromSequence(RendezvousSequence value)
 {
     return (ushort) value;
 }