Mercurial > pidgin.yaz
view plugins/perl/common/Network.xs @ 12730:d5b8f4dc1622
[gaim-migrate @ 15074]
Update gaim_network_listen*() to have the socket type specified. This allows us to use the same functionality to listen on UDP sockets too. There are probably a couple things that should be updated to use this. I also updated SIMPLE to allow the connect port to be specified in the account options.
committer: Tailor Script <tailor@pidgin.im>
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Thu, 05 Jan 2006 05:04:07 +0000 |
parents | b284c703d398 |
children | 96f9b4798012 |
line wrap: on
line source
#include "module.h" MODULE = Gaim::Network PACKAGE = Gaim::Network PREFIX = gaim_network_ PROTOTYPES: ENABLE const char * gaim_network_get_local_system_ip(fd) int fd const char * gaim_network_get_my_ip(fd) int fd unsigned short gaim_network_get_port_from_fd(fd) int fd const char * gaim_network_get_public_ip() void gaim_network_init() const unsigned char * gaim_network_ip_atoi(ip) const char *ip int gaim_network_listen(port, socket_type) unsigned short port int socket_type int gaim_network_listen_range(start, end, socket_type) unsigned short start unsigned short end int socket_type void gaim_network_set_public_ip(ip) const char *ip