xmpp.go
changeset 15 aa2cf77f0ed3
parent 13 c9527bbe99a6
child 17 d269d9c0fc8e
equal deleted inserted replaced
14:fd6781a41e6f 15:aa2cf77f0ed3
    83 
    83 
    84 	cl := new(Client)
    84 	cl := new(Client)
    85 	cl.password = password
    85 	cl.password = password
    86 	cl.Jid = *jid
    86 	cl.Jid = *jid
    87 	cl.socket = tcp
    87 	cl.socket = tcp
    88 	cl.handlers = make(chan *stanzaHandler)
    88 	cl.handlers = make(chan *stanzaHandler, 1)
    89 
    89 
    90 	// Start the transport handler, initially unencrypted.
    90 	// Start the transport handler, initially unencrypted.
    91 	tlsr, tlsw := cl.startTransport()
    91 	tlsr, tlsw := cl.startTransport()
    92 
    92 
    93 	// Start the reader and writers that convert to and from XML.
    93 	// Start the reader and writers that convert to and from XML.