Mercurial > pidgin.yaz
comparison plugins/jabber/jabber.c @ 1668:91cddbcfdd17
[gaim-migrate @ 1678]
well, at least this should point out what the problem is. right?
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Fri, 30 Mar 2001 22:32:44 +0000 |
parents | 8b0c165a33f4 |
children | 4328efeb531e |
comparison
equal
deleted
inserted
replaced
1667:b5635d882116 | 1668:91cddbcfdd17 |
---|---|
210 j->state = JCONN_STATE_OFF; | 210 j->state = JCONN_STATE_OFF; |
211 gjab_send_raw(j, "</stream:stream>"); | 211 gjab_send_raw(j, "</stream:stream>"); |
212 close(j->fd); | 212 close(j->fd); |
213 j->fd = -1; | 213 j->fd = -1; |
214 XML_ParserFree(j->parser); | 214 XML_ParserFree(j->parser); |
215 j->parser = NULL; | |
215 } | 216 } |
216 | 217 |
217 static int gjab_getfd(gjconn j) | 218 static int gjab_getfd(gjconn j) |
218 { | 219 { |
219 if (j) | 220 if (j) |
324 if (!j || j->state == JCONN_STATE_OFF) | 325 if (!j || j->state == JCONN_STATE_OFF) |
325 return; | 326 return; |
326 | 327 |
327 if ((len = read(j->fd, buf, sizeof(buf) - 1))) { | 328 if ((len = read(j->fd, buf, sizeof(buf) - 1))) { |
328 buf[len] = '\0'; | 329 buf[len] = '\0'; |
329 debug_printf("input: %s\n", buf); | 330 debug_printf("input (len %d): %s\n", len, buf); |
330 XML_Parse(j->parser, buf, len, 0); | 331 XML_Parse(j->parser, buf, len, 0); |
331 } else if (len <= 0) { | 332 } else if (len <= 0) { |
332 STATE_EVT(JCONN_STATE_OFF) | 333 STATE_EVT(JCONN_STATE_OFF) |
333 } | 334 } |
334 } | 335 } |