public RtmpsProxyClient(IProxyHost host, TcpClient src)
			: base(host, src)
		{
			if (!(host is RtmpsProxyHost))
				throw new ArgumentException("Expected RtmpsProxyHost, got " + host.GetType());

			Host = (RtmpsProxyHost)host;
		}
示例#2
0
		public ProxyClient(IProxyHost host, TcpClient src)
		{
			Host = host;
			SourceTcp = src;
			SourceBuffer = new byte[BufferSize];
			RemoteBuffer = new byte[BufferSize];
			RemoteTcp = new TcpClient();
			SourceQueue.Process += SourceQueue_Process;
			RemoteQueue.Process += RemoteQueue_Process;
		}
示例#3
0
        public RtmpsProxyClient(IProxyHost host, TcpClient src)
            : base(host, src)
        {
            if (!(host is RtmpsProxyHost))
            {
                throw new ArgumentException("Expected RtmpsProxyHost, got " + host.GetType());
            }

            Host = (RtmpsProxyHost)host;
        }
示例#4
0
 public ProxyClient(IProxyHost host, TcpClient src)
 {
     Host                 = host;
     SourceTcp            = src;
     SourceBuffer         = new byte[BufferSize];
     RemoteBuffer         = new byte[BufferSize];
     RemoteTcp            = new TcpClient();
     SourceQueue.Process += SourceQueue_Process;
     RemoteQueue.Process += RemoteQueue_Process;
 }