equal
deleted
inserted
replaced
78 Uid string |
78 Uid string |
79 // This client's JID. This will be updated asynchronously by |
79 // This client's JID. This will be updated asynchronously by |
80 // the time StartSession() returns. |
80 // the time StartSession() returns. |
81 Jid JID |
81 Jid JID |
82 password string |
82 password string |
83 tcp net.Conn |
|
84 socket net.Conn |
83 socket net.Conn |
85 socketSync sync.WaitGroup |
84 socketSync sync.WaitGroup |
86 saslExpected string |
85 saslExpected string |
87 authDone bool |
86 authDone bool |
88 handlers chan *stanzaHandler |
87 handlers chan *stanzaHandler |
145 |
144 |
146 cl := new(Client) |
145 cl := new(Client) |
147 cl.Uid = <- Id |
146 cl.Uid = <- Id |
148 cl.password = password |
147 cl.password = password |
149 cl.Jid = *jid |
148 cl.Jid = *jid |
150 cl.tcp = tcp |
|
151 cl.socket = tcp |
149 cl.socket = tcp |
152 cl.handlers = make(chan *stanzaHandler, 100) |
150 cl.handlers = make(chan *stanzaHandler, 100) |
153 cl.inputControl = make(chan int) |
151 cl.inputControl = make(chan int) |
154 |
152 |
155 extStanza := make(map[string] func(*xml.Name) interface{}) |
153 extStanza := make(map[string] func(*xml.Name) interface{}) |