Mercurial > pidgin
comparison libpurple/protocols/qq/send_file.c @ 24140:619ac2303c46
2009.10.02 - ccpaging <ccpaging(at)gmail.com>
* Added 'Captcha Display' function
* Most functions from patch written by Emil Alexiev merged into trunk,
except 'buddy operations'
* 'online buddy status' and 'qun buddies' still have problems
author | SHiNE CsyFeK <csyfek@gmail.com> |
---|---|
date | Wed, 22 Oct 2008 14:43:46 +0000 |
parents | dbc7a9742f8d |
children | 818ab62006f5 |
comparison
equal
deleted
inserted
replaced
24139:832178d951ca | 24140:619ac2303c46 |
---|---|
119 sin.sin_addr.s_addr = g_htonl(info->remote_real_ip); | 119 sin.sin_addr.s_addr = g_htonl(info->remote_real_ip); |
120 } else { | 120 } else { |
121 sin.sin_port = g_htons(info->remote_minor_port); | 121 sin.sin_port = g_htons(info->remote_minor_port); |
122 sin.sin_addr.s_addr = g_htonl(info->remote_real_ip); | 122 sin.sin_addr.s_addr = g_htonl(info->remote_real_ip); |
123 } | 123 } |
124 purple_debug_info("QQ", "sending to channel: %d.%d.%d.%d:%d\n", | 124 purple_debug_info("QQ", "sending to channel: %s:%d\n", |
125 (int)sin.sin_addr.s_addr & 0xff, | 125 inet_ntoa(sin.sin_addr), |
126 (int)(sin.sin_addr.s_addr >> 8) & 0xff, | |
127 (int)(sin.sin_addr.s_addr >> 16) & 0xff, | |
128 (int)sin.sin_addr.s_addr >> 24, | |
129 (int)g_ntohs(sin.sin_port) | 126 (int)g_ntohs(sin.sin_port) |
130 ); | 127 ); |
131 return sendto(info->sender_fd, buf, len, 0, (struct sockaddr *) &sin, sizeof(sin)); | 128 return sendto(info->sender_fd, buf, len, 0, (struct sockaddr *) &sin, sizeof(sin)); |
132 } | 129 } |
133 | 130 |