private void Initialise(string serverHost, int serverPort, bool useSsl)
 {
     this.serverHost   = serverHost;
     this.serverPort   = serverPort;
     this.useSsl       = useSsl;
     this.canConnect   = true;
     this.recvBuffer   = new ReceiveBuffer();
     this.sendQueue    = new List <byte[]>();
     this.sendingMutex = new object();
     this.isSending    = false;
     this.serializer   = new PacketSerializer();
 }
Beispiel #2
0
 private void Initialise(string serverHost, int serverPort, bool useSsl)
 {
     this.serverHost = serverHost;
     this.serverPort = serverPort;
     this.useSsl = useSsl;
     this.canConnect = true;
     this.recvBuffer = new ReceiveBuffer();
     this.sendQueue = new List<byte[]>();
     this.sendingMutex = new object();
     this.isSending = false;
     this.serializer = new PacketSerializer();
 }