Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CipherSuites = []uint16{ tls.TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256, tls.TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256, tls.TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA, tls.TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA, tls.TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA, tls.TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA, }
View Source
var TLSConfig = &tls.Config{ MinVersion: tls.VersionTLS10, CipherSuites: CipherSuites, }
Functions ¶
func ResolveServer ¶
func ResolveServer(domain string) (sd protocol.ServerDesc)
Attempts to map a server domain name to a typical `ServerDesc` by use of SRV records, which is a standard that xmpp servers do often abide by.
Types ¶
type Conn ¶
type Conn struct {
// contains filtered or unexported fields
}
func (*Conn) AcceptConversations ¶
func (conn *Conn) AcceptConversations() <-chan protocol.Conversation
func (*Conn) StartConversation ¶
func (conn *Conn) StartConversation(recipient protocol.Account) protocol.Conversation
Source Files ¶
Click to show internal directories.
Click to hide internal directories.