annotate plugins/perl/common/Network.xs @ 13807:a415805c7456

[gaim-migrate @ 16232] Don Seiler submitted this patch to bug #1426339. It compensates for a jabber server error where some broken servers send more than one group name with a buddy. Or something like that. In any case, the server was broken and Gaim didn't handle it very gracefully, and it's a one-line fix. committer: Tailor Script <tailor@pidgin.im>
author Ethan Blanton <elb@pidgin.im>
date Thu, 08 Jun 2006 04:27:04 +0000
parents 3097275dbbdd
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
11118
134d0001983d [gaim-migrate @ 13174]
John H. Kelm <johnkelm@gmail.com>
parents:
diff changeset
1 #include "module.h"
134d0001983d [gaim-migrate @ 13174]
John H. Kelm <johnkelm@gmail.com>
parents:
diff changeset
2
134d0001983d [gaim-migrate @ 13174]
John H. Kelm <johnkelm@gmail.com>
parents:
diff changeset
3 MODULE = Gaim::Network PACKAGE = Gaim::Network PREFIX = gaim_network_
134d0001983d [gaim-migrate @ 13174]
John H. Kelm <johnkelm@gmail.com>
parents:
diff changeset
4 PROTOTYPES: ENABLE
134d0001983d [gaim-migrate @ 13174]
John H. Kelm <johnkelm@gmail.com>
parents:
diff changeset
5
134d0001983d [gaim-migrate @ 13174]
John H. Kelm <johnkelm@gmail.com>
parents:
diff changeset
6 const char *
134d0001983d [gaim-migrate @ 13174]
John H. Kelm <johnkelm@gmail.com>
parents:
diff changeset
7 gaim_network_get_local_system_ip(fd)
134d0001983d [gaim-migrate @ 13174]
John H. Kelm <johnkelm@gmail.com>
parents:
diff changeset
8 int fd
134d0001983d [gaim-migrate @ 13174]
John H. Kelm <johnkelm@gmail.com>
parents:
diff changeset
9
134d0001983d [gaim-migrate @ 13174]
John H. Kelm <johnkelm@gmail.com>
parents:
diff changeset
10 const char *
134d0001983d [gaim-migrate @ 13174]
John H. Kelm <johnkelm@gmail.com>
parents:
diff changeset
11 gaim_network_get_my_ip(fd)
134d0001983d [gaim-migrate @ 13174]
John H. Kelm <johnkelm@gmail.com>
parents:
diff changeset
12 int fd
134d0001983d [gaim-migrate @ 13174]
John H. Kelm <johnkelm@gmail.com>
parents:
diff changeset
13
12773
96f9b4798012 [gaim-migrate @ 15120]
Etan Reisner <pidgin@unreliablesource.net>
parents: 12730
diff changeset
14 unsigned short
11118
134d0001983d [gaim-migrate @ 13174]
John H. Kelm <johnkelm@gmail.com>
parents:
diff changeset
15 gaim_network_get_port_from_fd(fd)
134d0001983d [gaim-migrate @ 13174]
John H. Kelm <johnkelm@gmail.com>
parents:
diff changeset
16 int fd
134d0001983d [gaim-migrate @ 13174]
John H. Kelm <johnkelm@gmail.com>
parents:
diff changeset
17
134d0001983d [gaim-migrate @ 13174]
John H. Kelm <johnkelm@gmail.com>
parents:
diff changeset
18 const char *
134d0001983d [gaim-migrate @ 13174]
John H. Kelm <johnkelm@gmail.com>
parents:
diff changeset
19 gaim_network_get_public_ip()
134d0001983d [gaim-migrate @ 13174]
John H. Kelm <johnkelm@gmail.com>
parents:
diff changeset
20
12773
96f9b4798012 [gaim-migrate @ 15120]
Etan Reisner <pidgin@unreliablesource.net>
parents: 12730
diff changeset
21 void
11118
134d0001983d [gaim-migrate @ 13174]
John H. Kelm <johnkelm@gmail.com>
parents:
diff changeset
22 gaim_network_init()
134d0001983d [gaim-migrate @ 13174]
John H. Kelm <johnkelm@gmail.com>
parents:
diff changeset
23
11262
ecbbe6d18b0d [gaim-migrate @ 13440]
Mark Doliner <mark@kingant.net>
parents: 11118
diff changeset
24 const unsigned char *
11118
134d0001983d [gaim-migrate @ 13174]
John H. Kelm <johnkelm@gmail.com>
parents:
diff changeset
25 gaim_network_ip_atoi(ip)
134d0001983d [gaim-migrate @ 13174]
John H. Kelm <johnkelm@gmail.com>
parents:
diff changeset
26 const char *ip
134d0001983d [gaim-migrate @ 13174]
John H. Kelm <johnkelm@gmail.com>
parents:
diff changeset
27
12773
96f9b4798012 [gaim-migrate @ 15120]
Etan Reisner <pidgin@unreliablesource.net>
parents: 12730
diff changeset
28 int
12910
3097275dbbdd [gaim-migrate @ 15263]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 12773
diff changeset
29 gaim_network_listen(port, socket_type, cb, cb_data)
11118
134d0001983d [gaim-migrate @ 13174]
John H. Kelm <johnkelm@gmail.com>
parents:
diff changeset
30 unsigned short port
12730
d5b8f4dc1622 [gaim-migrate @ 15074]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11290
diff changeset
31 int socket_type
12910
3097275dbbdd [gaim-migrate @ 15263]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 12773
diff changeset
32 Gaim::NetworkListenCallback cb
3097275dbbdd [gaim-migrate @ 15263]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 12773
diff changeset
33 gpointer cb_data
11118
134d0001983d [gaim-migrate @ 13174]
John H. Kelm <johnkelm@gmail.com>
parents:
diff changeset
34
12773
96f9b4798012 [gaim-migrate @ 15120]
Etan Reisner <pidgin@unreliablesource.net>
parents: 12730
diff changeset
35 int
12910
3097275dbbdd [gaim-migrate @ 15263]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 12773
diff changeset
36 gaim_network_listen_range(start, end, socket_type, cb, cb_data)
11118
134d0001983d [gaim-migrate @ 13174]
John H. Kelm <johnkelm@gmail.com>
parents:
diff changeset
37 unsigned short start
134d0001983d [gaim-migrate @ 13174]
John H. Kelm <johnkelm@gmail.com>
parents:
diff changeset
38 unsigned short end
12730
d5b8f4dc1622 [gaim-migrate @ 15074]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11290
diff changeset
39 int socket_type
12910
3097275dbbdd [gaim-migrate @ 15263]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 12773
diff changeset
40 Gaim::NetworkListenCallback cb
3097275dbbdd [gaim-migrate @ 15263]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 12773
diff changeset
41 gpointer cb_data
11118
134d0001983d [gaim-migrate @ 13174]
John H. Kelm <johnkelm@gmail.com>
parents:
diff changeset
42
12773
96f9b4798012 [gaim-migrate @ 15120]
Etan Reisner <pidgin@unreliablesource.net>
parents: 12730
diff changeset
43 void
11118
134d0001983d [gaim-migrate @ 13174]
John H. Kelm <johnkelm@gmail.com>
parents:
diff changeset
44 gaim_network_set_public_ip(ip)
134d0001983d [gaim-migrate @ 13174]
John H. Kelm <johnkelm@gmail.com>
parents:
diff changeset
45 const char *ip