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"; } }
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"; } }
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); } }
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); } }