xmpp.go
changeset 22 d6b7b4cbf50d
parent 20 e119444a1119
child 23 b5de44679389
equal deleted inserted replaced
21:8f6ae5cfc9b9 22:d6b7b4cbf50d
   121 	// events and responds to them.
   121 	// events and responds to them.
   122 	clIn := cl.startStreamReader(xmlIn, cl.xmlOut)
   122 	clIn := cl.startStreamReader(xmlIn, cl.xmlOut)
   123 	clOut := startStreamWriter(cl.xmlOut)
   123 	clOut := startStreamWriter(cl.xmlOut)
   124 
   124 
   125 	// Initial handshake.
   125 	// Initial handshake.
   126 	hsOut := &Stream{To: jid.Domain, Version: Version}
   126 	hsOut := &stream{To: jid.Domain, Version: Version}
   127 	cl.xmlOut <- hsOut
   127 	cl.xmlOut <- hsOut
   128 
   128 
   129 	cl.In = clIn
   129 	cl.In = clIn
   130 	cl.Out = clOut
   130 	cl.Out = clOut
   131 	cl.TextOut = textOut
   131 	cl.TextOut = textOut