Changeset 862371b for libfaim/conn.c
- Timestamp:
- Jun 29, 2003, 1:47:04 PM (22 years ago)
- Branches:
- master, barnowl_perlaim, debian, owl, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
- Children:
- e016fc2
- Parents:
- 03ad7b2
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libfaim/conn.c
r5e53c4a r862371b 1 2 1 /* 3 2 * conn.c … … 15 14 #include <sys/socket.h> 16 15 #include <netinet/in.h> 16 #endif 17 18 #ifdef _WIN32 19 #include "win32dep.h" 17 20 #endif 18 21 … … 446 449 i = 3; 447 450 } 448 449 451 if (write(fd, buf, i) < i) { 450 452 *statusret = errno; … … 452 454 return -1; 453 455 } 454 455 456 if (read(fd, buf, 2) < 2) { 456 457 *statusret = errno; … … 502 503 return -1; 503 504 } 505 504 506 if (read(fd, buf, 10) < 10) { 505 507 *statusret = errno; … … 877 879 sess->modlistv = NULL; 878 880 881 sess->ssi.received_data = 0; 882 sess->ssi.waiting_for_ack = 0; 883 sess->ssi.holding_queue = NULL; 884 sess->ssi.revision = 0; 885 sess->ssi.items = NULL; 886 sess->ssi.timestamp = (time_t)0; 887 888 sess->emailinfo = NULL; 889 879 890 /* 880 891 * Default to SNAC login unless XORLOGIN is explicitly set. … … 909 920 aim__registermodule(sess, chatnav_modfirst); 910 921 aim__registermodule(sess, chat_modfirst); 911 /* missing 0x0f - 0x12 */ 922 aim__registermodule(sess, newsearch_modfirst); 923 /* missing 0x10 - 0x12 */ 912 924 aim__registermodule(sess, ssi_modfirst); 913 925 /* missing 0x14 */ 914 aim__registermodule(sess, icq_modfirst); 926 aim__registermodule(sess, icq_modfirst); /* XXX - Make sure this isn't sent for AIM */ 915 927 /* missing 0x16 */ 916 928 aim__registermodule(sess, auth_modfirst); 929 aim__registermodule(sess, email_modfirst); 917 930 918 931 return; … … 981 994 fd_set fds, wfds; 982 995 struct timeval tv; 983 int res, error = ETIMEDOUT; 996 int res; 997 int error = ETIMEDOUT; 998 984 999 aim_rxcallback_t userfunc; 985 1000 … … 1009 1024 if (FD_ISSET(conn->fd, &fds) || FD_ISSET(conn->fd, &wfds)) { 1010 1025 int len = sizeof(error); 1011 1012 1026 if (getsockopt(conn->fd, SOL_SOCKET, SO_ERROR, &error, &len) < 0) 1013 1027 error = errno; … … 1019 1033 return -1; 1020 1034 } 1021 1022 1035 fcntl(conn->fd, F_SETFL, 0); /* XXX should restore original flags */ 1023 1036 … … 1054 1067 1055 1068 return 0; 1056 1057 1069 } 1058 1070 … … 1061 1073 * 1062 1074 * No-op. WinAIM 4.x sends these _every minute_ to keep 1063 * the connection alive. 1075 * the connection alive. 1064 1076 */ 1065 1077 faim_export int aim_flap_nop(aim_session_t *sess, aim_conn_t *conn) … … 1074 1086 return 0; 1075 1087 } 1076 1077
Note: See TracChangeset
for help on using the changeset viewer.