stream.go
changeset 22 d6b7b4cbf50d
parent 21 8f6ae5cfc9b9
child 23 b5de44679389
--- a/stream.go	Wed Dec 28 13:05:59 2011 -0700
+++ b/stream.go	Wed Dec 28 13:14:46 2011 -0700
@@ -202,7 +202,7 @@
 		case x := <- srvIn:
 			send := false
 			switch obj := x.(type) {
-			case *Stream:
+			case *stream:
 				handleStream(obj)
 			case *Features:
 				cl.handleFeatures(obj)
@@ -237,7 +237,7 @@
 	}
 }
 
-func handleStream(ss *Stream) {
+func handleStream(ss *stream) {
 }
 
 func (cl *Client) handleFeatures(fe *Features) {
@@ -288,7 +288,7 @@
 
 	// Now re-send the initial handshake message to start the new
 	// session.
-	hsOut := &Stream{To: cl.Jid.Domain, Version: Version}
+	hsOut := &stream{To: cl.Jid.Domain, Version: Version}
 	cl.xmlOut <- hsOut
 }
 
@@ -345,7 +345,7 @@
 		log.Println("SASL authentication failed")
 	case "success":
 		log.Println("SASL authentication succeeded")
-		ss := &Stream{To: cl.Jid.Domain, Version: Version}
+		ss := &stream{To: cl.Jid.Domain, Version: Version}
 		cl.xmlOut <- ss
 	}
 }