Re: [Phpsmartirc-users] Setting hostname in ipv6 ?
Brought to you by:
meebey
From: Mirco B. <me...@me...> - 2005-03-22 14:43:59
|
Hi, by default SmartIRC does not support this neither PHPs fsock* do, but when you activate the usage of sockets in SmartIRC and a little change it would work. First enable the socket usage, $irc->setUseSockets(true); then open up the SmartIRC.php file, search for socket_create() Put the following code after that: socket_bind($this->_socket, "your_ip_with_a_different_rdns_name"); this way the socket will use your other IP address. On Tue, 2005-03-22 at 15:38 +0200, Juha Partanen wrote: > Hey! >=20 > I have a problem using smartirc library to get my > irc bot connected to an irc network. >=20 > The shell i'm running the bot in, has many > options for the hostname, but the smartirc > library uses the default hostname. (obvious) >=20 > The problem is, that the default hostname has > too many connections to the network,=20 > and it's disconnected because of it. > =20 > I can succesfully connect to the network with other hostname, > in screen session in shell, so it'd work in with different hostname. >=20 > So would it be possible to set ipv6 hostname to=20 > the script, so it'd use that to connect?=20 --=20 Regards, Mirco 'meebey' Bauer PGP-Key: http://keyserver.noreply.org/pks/lookup?op=3Dget&search=3D0xEEF946C8 -----BEGIN GEEK CODE BLOCK----- Version: 3.12 GIT d s-:+ a-- C++ UL++++$ P L++$>+++$ E- W+++$ N o? K- w++>! O---- M- V? PS PE+ Y- PGP++ t 5+ X++ R tv+ b+ DI? D+ G>++ e h! r->++ y? ------END GEEK CODE BLOCK------ |