Versions in this module Expand all Collapse all v0 v0.2.0 Apr 3, 2020 Changes in this version + func SetLoggingHandler(handler LoggingHandlerFunc) + type LoggingHandlerFunc logging.HandlerFunc type SRTConn + func (c *SRTConn) Stats() map[string]interface{} v0.1.0 Oct 24, 2018 Changes in this version + var DefaultResolver = &Resolver + func Dial(network, address string) (net.Conn, error) + func DialTimeout(network, address string, timeout time.Duration) (net.Conn, error) + func Listen(network, address string) (net.Listener, error) + func ListenContext(ctx context.Context, network, address string) (net.Listener, error) + func Option(ctx context.Context, key string) (string, bool) + func Shutdown() + func WithOptions(ctx context.Context, options OptionSet) context.Context + type Dialer struct + Deadline time.Time + DualStack bool + FallbackDelay time.Duration + LocalAddr net.Addr + Resolver *Resolver + Timeout time.Duration + func (d *Dialer) Dial(network, address string) (net.Conn, error) + func (d *Dialer) DialContext(ctx context.Context, network, address string) (net.Conn, error) + type OpError struct + Addr net.Addr + Err error + Net string + Op string + Source net.Addr + func (e *OpError) Error() string + func (e *OpError) Temporary() bool + func (e *OpError) Timeout() bool + type OptionSet struct + func Options(args ...string) OptionSet + type Resolver struct + func (r *Resolver) LookupIPAddr(ctx context.Context, host string) ([]net.IPAddr, error) + func (r *Resolver) LookupPort(ctx context.Context, network, service string) (port int, err error) + type SRTAddr struct + IP net.IP + Port int + Zone string + func ResolveSRTAddr(network, address string) (*SRTAddr, error) + func (a *SRTAddr) Network() string + func (a *SRTAddr) String() string + type SRTConn struct + func DialSRT(network string, laddr, raddr *SRTAddr) (*SRTConn, error) + func (c *SRTConn) Close() error + func (c *SRTConn) LocalAddr() net.Addr + func (c *SRTConn) Read(b []byte) (int, error) + func (c *SRTConn) ReadFrom(r io.Reader) (int64, error) + func (c *SRTConn) RemoteAddr() net.Addr + func (c *SRTConn) SetDeadline(t time.Time) error + func (c *SRTConn) SetReadDeadline(t time.Time) error + func (c *SRTConn) SetWriteDeadline(t time.Time) error + func (c *SRTConn) StreamID() (string, error) + func (c *SRTConn) Write(b []byte) (int, error) + type SRTListener struct + func ListenSRT(network string, laddr *SRTAddr) (*SRTListener, error) + func (l *SRTListener) Accept() (net.Conn, error) + func (l *SRTListener) AcceptSRT() (*SRTConn, error) + func (l *SRTListener) Addr() net.Addr + func (l *SRTListener) Close() error + func (l *SRTListener) SetDeadline(t time.Time) error