Esempio n. 1
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();
 }
Esempio n. 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();
 }