Changeset 5bcf70a for protocols/jabber
- Timestamp:
- 2006-09-21T18:44:34Z (18 years ago)
- Branches:
- master
- Children:
- deff040
- Parents:
- 4a0614e
- Location:
- protocols/jabber
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/jabber/io.c
r4a0614e r5bcf70a 235 235 } 236 236 237 gboolean jabber_end_stream( struct gaim_connection *gc ) 238 { 239 struct jabber_data *jd = gc->proto_data; 240 char eos[] = "</stream:stream>"; 237 void jabber_end_stream( struct gaim_connection *gc ) 238 { 239 struct jabber_data *jd = gc->proto_data; 241 240 242 241 /* Let's only do this if the queue is currently empty, otherwise it'd 243 242 take too long anyway. */ 244 if( jd->tx_len > 0 ) 245 return TRUE; 246 else 247 return jabber_write( gc, eos, strlen( eos ) ); 248 } 243 if( jd->tx_len == 0 ) 244 { 245 char eos[] = "</stream:stream>"; 246 struct xt_node *node; 247 int st; 248 249 node = jabber_make_packet( "presence", "unavailable", NULL, NULL ); 250 st = jabber_write_packet( gc, node ); 251 xt_free_node( node ); 252 253 if( st ) 254 jabber_write( gc, eos, strlen( eos ) ); 255 } 256 } -
protocols/jabber/jabber.h
r4a0614e r5bcf70a 57 57 gboolean jabber_connected_plain( gpointer data, gint source, b_input_condition cond ); 58 58 gboolean jabber_start_stream( struct gaim_connection *gc ); 59 gbooleanjabber_end_stream( struct gaim_connection *gc );59 void jabber_end_stream( struct gaim_connection *gc ); 60 60 61 61 struct jabber_data
Note: See TracChangeset
for help on using the changeset viewer.