Changeset 19ac9c5
- Timestamp:
- 2006-05-13T19:44:59Z (19 years ago)
- Branches:
- master
- Children:
- 0356ae3
- Parents:
- 782d988
- Location:
- protocols
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/events_libevent.c
r782d988 r19ac9c5 50 50 guint id; 51 51 struct event evinfo; 52 gint timeout; 52 53 b_event_handler function; 53 54 void *data; … … 101 102 event_debug( "Handler returned FALSE: " ); 102 103 b_event_remove( id ); 104 } 105 else if( fd == -1 ) 106 { 107 struct timeval tv; 108 109 tv.tv_sec = b_ev->timeout / 1000; 110 tv.tv_usec = ( b_ev->timeout % 1000 ) * 1000; 111 112 evtimer_add( &b_ev->evinfo, &tv ); 103 113 } 104 114 } … … 159 169 160 170 b_ev->id = id_next++; 171 b_ev->timeout = timeout; 161 172 b_ev->function = function; 162 173 b_ev->data = data; -
protocols/proxy.c
r782d988 r19ac9c5 126 126 127 127 sock_make_nonblocking(fd); 128 128 129 event_debug("proxy_connect_none( \"%s\", %d ) = %d\n", host, port, fd); 130 129 131 if (connect(fd, (struct sockaddr *)sin, sizeof(*sin)) < 0) { 130 132 if (sockerr_again()) { -
protocols/ssl_openssl.c
r782d988 r19ac9c5 115 115 int st; 116 116 117 if( 0 && conn->inpa != -1 )118 {119 b_event_remove( conn->inpa );120 conn->inpa = -1;121 }122 123 117 if( ( st = SSL_connect( conn->ssl ) ) < 0 ) 124 118 {
Note: See TracChangeset
for help on using the changeset viewer.