view libpurple/plugins/perl/common/Network.xs @ 32215:32b2a17d2f92

Rename purple_network_listen_range_family() to purple_network_listen_range().
author andrew.victor@mxit.com
date Sat, 24 Sep 2011 20:48:59 +0000
parents 75d20c9836c1
children d2ef8926b960
line wrap: on
line source

#include "module.h"

MODULE = Purple::Network  PACKAGE = Purple::Network  PREFIX = purple_network_
PROTOTYPES: ENABLE

const char *
purple_network_get_local_system_ip(fd)
	int fd

const char *
purple_network_get_my_ip(fd)
	int fd

unsigned short
purple_network_get_port_from_fd(fd)
	int fd

const char *
purple_network_get_public_ip()

const unsigned char *
purple_network_ip_atoi(ip)
	const char *ip

Purple::NetworkListenData
purple_network_listen(port, socket_family, socket_type, cb, cb_data)
	unsigned short port
	int socket_family
	int socket_type
	Purple::NetworkListenCallback cb
	gpointer cb_data

Purple::NetworkListenData
purple_network_listen_range(start, end, socket_family, socket_type, cb, cb_data)
	unsigned short start
	unsigned short end
	int socket_family
	int socket_type
	Purple::NetworkListenCallback cb
	gpointer cb_data

void
purple_network_set_public_ip(ip)
	const char *ip