Changeset ba9edaa for protocols/http_client.c
- Timestamp:
- 2006-05-10T17:34:46Z (19 years ago)
- Branches:
- master
- Children:
- 13cc96c
- Parents:
- 67b6766
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/http_client.c
r67b6766 rba9edaa 32 32 33 33 34 static void http_connected( gpointer data, int source, GaimInputCondition cond );35 static void http_ssl_connected( gpointer data, void *source, GaimInputCondition cond );36 static void http_incoming_data( gpointer data, int source, GaimInputCondition cond );34 static gboolean http_connected( gpointer data, int source, b_input_condition cond ); 35 static gboolean http_ssl_connected( gpointer data, void *source, b_input_condition cond ); 36 static gboolean http_incoming_data( gpointer data, int source, b_input_condition cond ); 37 37 38 38 … … 73 73 /* This one is actually pretty simple... Might get more calls if we can't write 74 74 the whole request at once. */ 75 static void http_connected( gpointer data, int source, GaimInputCondition cond )75 static gboolean http_connected( gpointer data, int source, b_input_condition cond ) 76 76 { 77 77 struct http_request *req = data; … … 82 82 83 83 if( req->inpa > 0 ) 84 gaim_input_remove( req->inpa );84 b_event_remove( req->inpa ); 85 85 86 86 sock_make_nonblocking( req->fd ); … … 117 117 118 118 if( req->bytes_written < req->request_length ) 119 req->inpa = gaim_input_add( source,120 121 122 else 123 req->inpa = gaim_input_add( source, GAIM_INPUT_READ, http_incoming_data, req );124 125 return ;119 req->inpa = b_input_add( source, 120 req->ssl ? ssl_getdirection( req->ssl ) : GAIM_INPUT_WRITE, 121 http_connected, req ); 122 else 123 req->inpa = b_input_add( source, GAIM_INPUT_READ, http_incoming_data, req ); 124 125 return FALSE; 126 126 127 127 error: … … 131 131 g_free( req ); 132 132 133 return ;133 return FALSE; 134 134 } 135 135 136 static void http_ssl_connected( gpointer data, void *source, GaimInputCondition cond )136 static gboolean http_ssl_connected( gpointer data, void *source, b_input_condition cond ) 137 137 { 138 138 struct http_request *req = data; … … 146 146 } 147 147 148 static void http_incoming_data( gpointer data, int source, GaimInputCondition cond )148 static gboolean http_incoming_data( gpointer data, int source, b_input_condition cond ) 149 149 { 150 150 struct http_request *req = data; … … 155 155 156 156 if( req->inpa > 0 ) 157 gaim_input_remove( req->inpa );157 b_event_remove( req->inpa ); 158 158 159 159 if( req->ssl ) … … 202 202 203 203 /* There will be more! */ 204 req->inpa = gaim_input_add( req->fd,205 206 207 208 return ;204 req->inpa = b_input_add( req->fd, 205 req->ssl ? ssl_getdirection( req->ssl ) : GAIM_INPUT_READ, 206 http_incoming_data, req ); 207 208 return FALSE; 209 209 210 210 got_reply: … … 362 362 req->reply_headers = req->reply_body = NULL; 363 363 364 return ;364 return FALSE; 365 365 } 366 366 … … 380 380 g_free( req->reply_headers ); 381 381 g_free( req ); 382 383 return FALSE; 382 384 }
Note: See TracChangeset
for help on using the changeset viewer.