Versions in this module Expand all Collapse all v0 v0.2.0 Apr 16, 2022 Changes in this version + var ErrArrLengthMismatch = errors.New("length of sdp slice and seeds do not match") + var ErrNoRegistration = errors.New("no registration found") + func Conn2Mux(conn *net.UDPConn) ice.UDPMux + func GetHKDFParamPair(seed string) (server, client *seed2sdp.HKDFParams) + func Mux2WebRTC(ctx context.Context, mux ice.UDPMux, seeds []string, ...) (wrappedConn *transportc.WebRTConn, matchedID int, err error) + func RandPort(seed string) uint16 + func SetBasePort(port uint16) + func SetClientIdentifier(identifier string) + func SetPortRange(range_ int64) + func SetRandSalt(salt string) + func SetServerIdentifier(identifier string) + type Client struct + func DefaultClient() (*Client, error) + func NewClient(seed string, iceServers []webrtc.ICEServer) *Client + func (c *Client) Connect(ctx context.Context, phantoms []*net.IP) (net.Conn, error) + func (c *Client) LocalSDP() (*seed2sdp.SDP, error) + func (c *Client) OriginalLocalSDP() (string, error) + func (c *Client) Prepare() error + func (c *Client) Seed() string + func (c *Client) WebRTCSignal() (*tdproto.WebRTCSignal, error) + type ClientSetup string + const CLIENT_SETUP_ACTIVE + const CLIENT_SETUP_ACTPASS + const CLIENT_SETUP_PASSIVE