mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-14 05:11:19 -04:00
client multiplexing using a webRTCConn channel (#31)
This commit is contained in:
parent
2515ddb1fa
commit
a8ea5e586e
2 changed files with 30 additions and 16 deletions
|
@ -24,6 +24,7 @@ type webRTCConn struct {
|
|||
writePipe *io.PipeWriter
|
||||
buffer bytes.Buffer
|
||||
reset chan struct{}
|
||||
active bool
|
||||
*BytesInfo
|
||||
}
|
||||
|
||||
|
@ -86,6 +87,7 @@ func NewWebRTCConnection(config *webrtc.Configuration,
|
|||
// creation & local description setting, which happens asynchronously.
|
||||
connection.errorChannel = make(chan error, 1)
|
||||
connection.reset = make(chan struct{}, 1)
|
||||
connection.active = false
|
||||
|
||||
// Log every few seconds.
|
||||
connection.BytesInfo = &BytesInfo{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue