view plugins/perl/common/Network.xs @ 12919:248b8b39c671

[gaim-migrate @ 15272] Replace GaimBlistNodeAction with the more generic GaimMenuAction, this is in preparation for letting the chat room user list have extensible menus like the blist entries do. (I know it's not exactly the prettiest, and the callback isn't exactly type-safe, when we eventually gobjectify everything we can get some safety back by using (GObject, gpointer) but that's for later.) I'm planning to look into merging GaimPluginActions into GaimMenuActions as well. committer: Tailor Script <tailor@pidgin.im>
author Etan Reisner <pidgin@unreliablesource.net>
date Tue, 17 Jan 2006 23:22:19 +0000
parents 3097275dbbdd
children
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, cb, cb_data)
	unsigned short port
	int socket_type
	Gaim::NetworkListenCallback cb
	gpointer cb_data

int
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