예제 #1
0
 public TcpRemoteClient(TcpClient client)
 {
     _client = client;
     var remoteEndPoint = (IPEndPoint) _client.Client.RemoteEndPoint;
     RemotePoint = new RemotePoint(remoteEndPoint.Port, remoteEndPoint.Address.ToString());
     var stream = _client.GetStream();
     WriteStream = stream;
     ReadStream = stream;
 }
		public MulticastRemoteClient(RemotePoint point, Stream stream)
		{
			_stream = stream;
			WriteStream = Stream.Null;
            RemotePoint = point;
		}