Sun, 12 Feb 2006 22:14:38 +0000
[gaim-migrate @ 15620]
This is the way we clean the code, clean the code, clean the code
This is the way we clean the code, clean the code, clean the code
So early in the morning
| 11118 | 1 | #include "module.h" |
| 2 | ||
| 3 | MODULE = Gaim::Network PACKAGE = Gaim::Network PREFIX = gaim_network_ | |
| 4 | PROTOTYPES: ENABLE | |
| 5 | ||
| 6 | const char * | |
| 7 | gaim_network_get_local_system_ip(fd) | |
| 8 | int fd | |
| 9 | ||
| 10 | const char * | |
| 11 | gaim_network_get_my_ip(fd) | |
| 12 | int fd | |
| 13 | ||
| 12773 | 14 | unsigned short |
| 11118 | 15 | gaim_network_get_port_from_fd(fd) |
| 16 | int fd | |
| 17 | ||
| 18 | const char * | |
| 19 | gaim_network_get_public_ip() | |
| 20 | ||
| 12773 | 21 | void |
| 11118 | 22 | gaim_network_init() |
| 23 | ||
|
11262
561da6ec5c26
[gaim-migrate @ 13440]
Mark Doliner <markdoliner@pidgin.im>
parents:
11118
diff
changeset
|
24 | const unsigned char * |
| 11118 | 25 | gaim_network_ip_atoi(ip) |
| 26 | const char *ip | |
| 27 | ||
| 12773 | 28 | int |
|
12910
e6c3213c28ec
[gaim-migrate @ 15263]
Daniel Atallah <datallah@pidgin.im>
parents:
12773
diff
changeset
|
29 | gaim_network_listen(port, socket_type, cb, cb_data) |
| 11118 | 30 | unsigned short port |
|
12730
f64fdbc34677
[gaim-migrate @ 15074]
Daniel Atallah <datallah@pidgin.im>
parents:
11290
diff
changeset
|
31 | int socket_type |
|
12910
e6c3213c28ec
[gaim-migrate @ 15263]
Daniel Atallah <datallah@pidgin.im>
parents:
12773
diff
changeset
|
32 | Gaim::NetworkListenCallback cb |
|
e6c3213c28ec
[gaim-migrate @ 15263]
Daniel Atallah <datallah@pidgin.im>
parents:
12773
diff
changeset
|
33 | gpointer cb_data |
| 11118 | 34 | |
| 12773 | 35 | int |
|
12910
e6c3213c28ec
[gaim-migrate @ 15263]
Daniel Atallah <datallah@pidgin.im>
parents:
12773
diff
changeset
|
36 | gaim_network_listen_range(start, end, socket_type, cb, cb_data) |
| 11118 | 37 | unsigned short start |
| 38 | unsigned short end | |
|
12730
f64fdbc34677
[gaim-migrate @ 15074]
Daniel Atallah <datallah@pidgin.im>
parents:
11290
diff
changeset
|
39 | int socket_type |
|
12910
e6c3213c28ec
[gaim-migrate @ 15263]
Daniel Atallah <datallah@pidgin.im>
parents:
12773
diff
changeset
|
40 | Gaim::NetworkListenCallback cb |
|
e6c3213c28ec
[gaim-migrate @ 15263]
Daniel Atallah <datallah@pidgin.im>
parents:
12773
diff
changeset
|
41 | gpointer cb_data |
| 11118 | 42 | |
| 12773 | 43 | void |
| 11118 | 44 | gaim_network_set_public_ip(ip) |
| 45 | const char *ip |