Versions in this module Expand all Collapse all v1 v1.0.2 Dec 19, 2018 Changes in this version + const SRTP_AES128_CM_HMAC_SHA1_80 + var ErrConnClosed = errors.New("dtls: conn is closed") + func Fingerprint(cert *x509.Certificate, algo HashAlgorithm) (string, error) + func GenerateSelfSigned() (*x509.Certificate, crypto.PrivateKey, error) + type Config struct + Certificate *x509.Certificate + PrivateKey crypto.PrivateKey + type Conn struct + func Client(conn net.Conn, config *Config) (*Conn, error) + func Dial(network string, raddr *net.UDPAddr, config *Config) (*Conn, error) + func Server(conn net.Conn, config *Config) (*Conn, error) + func (c *Conn) Close() error + func (c *Conn) ExportKeyingMaterial(label []byte, context []byte, length int) ([]byte, error) + func (c *Conn) LocalAddr() net.Addr + func (c *Conn) Read(p []byte) (n int, err error) + func (c *Conn) RemoteAddr() net.Addr + func (c *Conn) RemoteCertificate() *x509.Certificate + 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(p []byte) (int, error) + type HashAlgorithm uint16 + const HashAlgorithmMD5 + const HashAlgorithmSHA1 + const HashAlgorithmSHA224 + const HashAlgorithmSHA256 + const HashAlgorithmSHA384 + const HashAlgorithmSHA512 + func HashAlgorithmString(s string) (HashAlgorithm, error) + func (h HashAlgorithm) String() string + type Listener struct + func Listen(network string, laddr *net.UDPAddr, config *Config) (*Listener, error) + func (l *Listener) Accept() (net.Conn, error) + func (l *Listener) Addr() net.Addr + func (l *Listener) Close() error