Exemple #1
0
 public void Connect(string host, int port, SslParameters sslParams)
 {
     this.m_stopWatch = new Stopwatch();
     this.Connection  = new ClientConnection <BattleNetPacket>();
     this.Connection.AddListener(this, null);
     this.Connection.AddConnectHandler(new ClientConnection <BattleNetPacket> .ConnectHandler(this.OnConnectCallback));
     this.Connection.AddDisconnectHandler(new ClientConnection <BattleNetPacket> .DisconnectHandler(this.OnDisconnectCallback));
     this.Connection.Connect(host, port);
 }
Exemple #2
0
 public static SslPolicy MakeSslPolicy(SslResource sslResource, SslParameters @params)
 {
     return(MakeSslPolicy(sslResource, SslProvider.JDK, @params.ProtocolsConflict, @params.CiphersConflict));
 }