--- a/libfaim/aim_conn.c Mon Oct 16 20:14:18 2000 +0000 +++ b/libfaim/aim_conn.c Wed Oct 18 02:38:18 2000 +0000 @@ -314,7 +314,6 @@ * * Opens a new connection to the specified dest host of type type. * - * TODO: fix for proxies * FIXME: Return errors in a more sane way. * */ @@ -323,8 +322,6 @@ { struct aim_conn_t *connstruct; int ret; - struct sockaddr_in sa; - struct hostent *hp; u_short port = FAIM_LOGIN_PORT; char *host = NULL; int i=0; @@ -406,6 +403,20 @@ return cnt; } +faim_export int aim_conn_in_sess(struct aim_session_t *sess, struct aim_conn_t *conn) +{ + struct aim_conn_t *cur; + + faim_mutex_lock(&sess->connlistlock); + for(cur = sess->connlist; cur; cur = cur->next) + if(cur == conn) { + faim_mutex_unlock(&sess->connlistlock); + return 1; + } + faim_mutex_unlock(&sess->connlistlock); + return 0; +} + /* * aim_select(timeout) *