private void Socks5StreamClosed(object Sender, P2P.SOCKS5.StreamEventArgs e) { //this.client.Information("SOCKS5 stream closed."); Socks5Receiver Rx = (Socks5Receiver)e.State; HttpxChunks.chunkedStreams.Remove(Rx.Key); }
private void InitiationCallback(object Sender, P2P.SOCKS5.StreamEventArgs e) { if (e.Ok) { this.socks5Output.Opened(e.Stream); } else { this.OnAbort(null, new EventArgs()); } }
private async Task Socks5StreamClosed(object Sender, P2P.SOCKS5.StreamEventArgs e) { #if LOG_SOCKS5_EVENTS this.client.Information("SOCKS5 stream closed."); #endif Socks5Receiver Rx = (Socks5Receiver)e.State; if (HttpxChunks.chunkedStreams.TryGetValue(Rx.Key, out ChunkRecord Rec)) { HttpxChunks.chunkedStreams.Remove(Rx.Key); await Rec.ChunkReceived(Rx.Nr++, true, new byte[0]); } }