xmpp

package
v0.3.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 27, 2016 License: GPL-3.0 Imports: 32 Imported by: 0

Documentation

Overview

Package xmpp implements the XMPP IM protocol, as specified in RFC 6120 and 6121.

Package xmpp implements the XMPP IM protocol, as specified in RFC 6120 and 6121.

Package xmpp implements the XMPP IM protocol, as specified in RFC 6120 and 6121.

Package xmpp implements the XMPP IM protocol, as specified in RFC 6120 and 6121.

Package xmpp implements the XMPP IM protocol, as specified in RFC 6120 and 6121.

Package xmpp implements the XMPP IM protocol, as specified in RFC 6120 and 6121.

Package xmpp implements the XMPP IM protocol, as specified in RFC 6120 and 6121.

Package xmpp implements the XMPP IM protocol, as specified in RFC 6120 and 6121. Ping implements the XMPP extension Ping, as specified in xep-0199

Package xmpp implements the XMPP IM protocol, as specified in RFC 6120 and 6121.

Package xmpp implements the XMPP IM protocol, as specified in RFC 6120 and 6121.

Package xmpp implements the XMPP IM protocol, as specified in RFC 6120 and 6121.

Package xmpp implements the XMPP IM protocol, as specified in RFC 6120 and 6121.

Package xmpp implements the XMPP IM protocol, as specified in RFC 6120 and 6121.

Package xmpp implements the XMPP IM protocol, as specified in RFC 6120 and 6121.

Package xmpp implements the XMPP IM protocol, as specified in RFC 6120 and 6121.

Package xmpp implements the XMPP IM protocol, as specified in RFC 6120 and 6121.

Package xmpp implements the XMPP IM protocol, as specified in RFC 6120 and 6121.

Index

Constants

View Source
const (
	NsStream  = "http://etherx.jabber.org/streams"
	NsTLS     = "urn:ietf:params:xml:ns:xmpp-tls"
	NsSASL    = "urn:ietf:params:xml:ns:xmpp-sasl"
	NsBind    = "urn:ietf:params:xml:ns:xmpp-bind"
	NsSession = "urn:ietf:params:xml:ns:xmpp-session"
	NsClient  = "jabber:client"
)

These constants represent the different namespaces used in standard XMPP

Variables

View Source
var (
	ErrUsernameConflict                = errors.New("xmpp: the username is not available for registration")
	ErrMissingRequiredRegistrationInfo = errors.New("xmpp: missing required registration information")
	ErrRegistrationFailed              = errors.New("xmpp: account creation failed")
)

Various errors signalled by the registration component

View Source
var (
	// ErrServiceNotAvailable means that the service is decidedly not available at this domain
	ErrServiceNotAvailable = errors.New("service not available")
)

Functions

func DialerFactory

func DialerFactory(verifier tls.Verifier) interfaces.Dialer

DialerFactory returns a new xmpp dialer

func GetCipherSuiteName

func GetCipherSuiteName(tlsState tls.ConnectionState) string

GetCipherSuiteName returns a human readable string of the cipher suite used in the state

func GetTLSVersion

func GetTLSVersion(tlsState tls.ConnectionState) string

GetTLSVersion returns a human readable string of the TLS version used in the state

func NewConn

func NewConn(in *xml.Decoder, out io.WriteCloser, jid string) interfaces.Conn

NewConn creates a new connection TODO: this is used only for testing. Remove when we have a Conn interface

func ParsePong

func ParsePong(reply data.Stanza) error

ParsePong parse a reply of a Pong response.

func Resolve

func Resolve(domain string) (hostport []string, err error)

Resolve performs a DNS SRV lookup for the XMPP server that serves the given domain.

func ResolveSRVWithProxy

func ResolveSRVWithProxy(proxy proxy.Dialer, domain string) (hostport []string, err error)

ResolveSRVWithProxy performs a DNS SRV lookup for the xmpp server that serves the given domain over the given proxy

func VerificationString

func VerificationString(r *data.DiscoveryReply) (string, error)

VerificationString returns a SHA-1 verification string as defined in XEP-0115. See http://xmpp.org/extensions/xep-0115.html#ver

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL