view libgaim/plugins/perl/common/Network.xs @ 14267:645598a4ec04

[gaim-migrate @ 16949] Change gaim_network_listen() and gaim_network_listen_range() to be cancelable. This doesn't actually help anything yet, since the gaim_upnp_functions() are not yet cancelable. But the framework is there, and the PRPLs shouldn't need any additional changes. Still to go: gaim_upnp_everything() gaim_url_fetch() gaim_srv_resolve() Let me know if there are others committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Mon, 21 Aug 2006 07:47:03 +0000
parents 60b1bc8dbf37
children d5c22258df09
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

Gaim::NetworkListenData *
gaim_network_listen(port, socket_type, cb, cb_data)
	unsigned short port
	int socket_type
	Gaim::NetworkListenCallback cb
	gpointer cb_data

Gaim::NetworkListenData *
gaim_network_listen_range(start, end, socket_type, cb, cb_data)
	unsigned short start
	unsigned short end
	int socket_type
	Gaim::NetworkListenCallback cb
	gpointer cb_data

void
gaim_network_set_public_ip(ip)
	const char *ip