Mercurial > pidgin
diff libfaim/aim_conn.c @ 1002:1d8f05ea6bdf
[gaim-migrate @ 1012]
i don't even remember what happened. all good things, i hope
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Wed, 18 Oct 2000 02:38:18 +0000 |
parents | 5e6ca3dd4d02 |
children | efcacae6acdb |
line wrap: on
line diff
--- 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) *