Documentation ¶
Index ¶
- func JoinStreams(c1, c2 net.Conn, statsCallback func(stats int64))
- func WrapConn(dc *webrtc.DataChannel, laddr, raddr net.Addr) (net.Conn, error)
- type Conn
- func (c *Conn) Close() error
- func (c *Conn) LocalAddr() net.Addr
- func (c *Conn) Read(b []byte) (int, error)
- func (c *Conn) RemoteAddr() net.Addr
- func (c *Conn) SetDeadline(t time.Time) error
- func (c *Conn) SetReadDeadline(t time.Time) error
- func (c *Conn) SetWriteDeadline(t time.Time) error
- func (c *Conn) Write(b []byte) (int, error)
- type NilAddr
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func JoinStreams ¶
JoinStreams can proxy data from stream 1 to stream 2 and vice-versa statsCallback will give the amount of data copied into the first stream
Types ¶
type Conn ¶
type Conn struct {
// contains filtered or unexported fields
}
Conn is used to wrap the connection in a golang net.Conn
func (*Conn) SetReadDeadline ¶
SetReadDeadline TODO
func (*Conn) SetWriteDeadline ¶
SetWriteDeadline TODO
Click to show internal directories.
Click to hide internal directories.