Example #1
0
 public SkySocket()
 {
     lock(SocketLocker)
     {
         IsDisposed = false;
         Connected = false;
         Stopping = false;
         Builder = new SocketMessageBuilder();
         Sock = new TcpClient();
         //SocketThread = new Thread(ReadThreadRunner);
         //SocketThread.Name = "SkySocket Read Thread";
     }
 }
Example #2
0
 public SkySocket()
 {
     lock (_socketLocker)
     {
         IsDisposed = false;
         Connected  = false;
         _stopping  = false;
         _builder   = new SocketMessageBuilder();
         Sock       = new TcpClient();
         //SocketThread = new Thread(ReadThreadRunner);
         //SocketThread.Name = "SkySocket Read Thread";
     }
 }
Example #3
0
 public SkySocket(TcpClient c)
 {
     lock (SocketLocker)
     {
         IsDisposed = false;
         Stopping = false;
         Sock = c;
         Builder = new SocketMessageBuilder();
         //SocketThread = new Thread(ReadThreadRunner);
         //SocketThread.Name = "SkySocket Read Thread";
         RemoteEndPoint = Sock.Client.RemoteEndPoint;
         //SocketThread.Start();
         Connected = true;
         LazyAsync.Invoke(AsyncRead);
     }
 }
Example #4
0
 public SkySocket(TcpClient c)
 {
     lock (_socketLocker)
     {
         IsDisposed = false;
         _stopping  = false;
         Sock       = c;
         _builder   = new SocketMessageBuilder();
         //SocketThread = new Thread(ReadThreadRunner);
         //SocketThread.Name = "SkySocket Read Thread";
         RemoteEndPoint = Sock.Client.RemoteEndPoint;
         //SocketThread.Start();
         Connected = true;
         LazyAsync.Invoke(AsyncRead);
     }
 }