Mercurial > pidgin
diff src/protocols/msn/session.c @ 7288:ff9127038a5a
[gaim-migrate @ 7869]
It doesn't completely work yet, but this is the beginnings of the MSN HTTP
port 80 connect method. I don't have it set so it can be enabled, so it's
harmless to commit this now, but I want a second set of eyes, and I also
want to do other MSN work without dealing with hand-merging patches.
committer: Tailor Script <tailor@pidgin.im>
| author | Christian Hammond <chipx86@chipx86.com> |
|---|---|
| date | Fri, 17 Oct 2003 14:57:59 +0000 |
| parents | 1cfbb731aa1f |
| children | 3a48ade4f510 |
line wrap: on
line diff
--- a/src/protocols/msn/session.c Fri Oct 17 05:58:16 2003 +0000 +++ b/src/protocols/msn/session.c Fri Oct 17 14:57:59 2003 +0000 @@ -22,6 +22,7 @@ #include "msn.h" #include "session.h" #include "dispatch.h" +#include "notification.h" MsnSession * msn_session_new(GaimAccount *account, const char *server, int port) @@ -103,12 +104,23 @@ session->connected = TRUE; - session->dispatch_conn = msn_dispatch_new(session, - session->dispatch_server, - session->dispatch_port); + if (session->http_method) + { + session->notification_conn = + msn_notification_new(session, "gateway.messenger.hotmail.com", 80); - if (msn_servconn_connect(session->dispatch_conn)) - return TRUE; + if (msn_servconn_connect(session->notification_conn)) + return TRUE; + } + else + { + session->dispatch_conn = msn_dispatch_new(session, + session->dispatch_server, + session->dispatch_port); + + if (msn_servconn_connect(session->dispatch_conn)) + return TRUE; + } return FALSE; }
