<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forum.eggheads.org/app.php/feed/topic/9101" />

	<title>egghelp/eggheads community</title>
	<subtitle>Discussion of eggdrop bots, shell accounts and tcl scripts.</subtitle>
	<link href="https://forum.eggheads.org/index.php" />
	<updated>2005-02-05T18:37:51-04:00</updated>

	<author><name><![CDATA[egghelp/eggheads community]]></name></author>
	<id>https://forum.eggheads.org/app.php/feed/topic/9101</id>

		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2005-02-05T18:37:51-04:00</updated>

		<published>2005-02-05T18:37:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=46299#p46299</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=46299#p46299"/>
		<title type="html"><![CDATA[how do you release lingering connections?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=46299#p46299"><![CDATA[
did you also try using .unlink and .link?<br>did you try using .restart? .rehash doesnt unload the bot so new configs will only override... if possible, if not there might be left behind some shadows (like when you delete an proc in a tcl, it will remain in the memory). So probably rehashing with another port just adds the new port and doesnt remove the old one <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile">.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Sat Feb 05, 2005 6:37 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[greenbear]]></name></author>
		<updated>2005-02-05T12:52:25-04:00</updated>

		<published>2005-02-05T12:52:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=46287#p46287</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=46287#p46287"/>
		<title type="html"><![CDATA[how do you release lingering connections?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=46287#p46287"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind dcc t|- closeport dcc:closeportproc dcc:closeport {hand idx arg} { set port [lindex $arg 0] if {[catch {listen $port off} .]} {  putidx $idx "Port $port is not open." } {  putidx $idx "Port $port have been closed." }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=24">greenbear</a> — Sat Feb 05, 2005 12:52 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ZvOO]]></name></author>
		<updated>2005-02-02T12:08:57-04:00</updated>

		<published>2005-02-02T12:08:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=46139#p46139</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=46139#p46139"/>
		<title type="html"><![CDATA[how do you release lingering connections?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=46139#p46139"><![CDATA[
I've searched the archives and can find nothing on this.<br><br>Sometimes if I lose a link between bots in my botnet they will not reconnect (even if I remove the passwords with .chpass on each one). I've found that the only way to get them to reconnect is to change their 'bots' port number to a different port.  After I change these ports in their config files and in each bot's user record and then rehash the bots, the bots immediately link up again.<br><br>Here's my question: after I've changed the ports, I do a .dccstat and I see lingering connections on the old port numbers in addition to the new connection(s). Is there an easy way to release these sock's and free up the old ports again?<br><br>Here's what it looks like:<br><br>SOCK ADDR     PORT  NICK      HOST              TYPE<br>---- -------- ----- --------- ----------------- ----<br>3    C0A8FE07  6464 (bots)    *                 lstn  6464<br>4    C0A8FE07  3335 (users)   *                 lstn  3335<br>5    00000000     0 (dns)                       dns   (ready)<br>7    CE2975C7  6668 (server)  irc.weblook2k.com serv  (lag: 0)<br>8    C0A8FE06  2525 zvoo22    net@192.168.3.13  chat  flags: cpTEp/0<br>6    C0A8FE07  6400 (bots)    *                 lstn  6400<br>9    C0A8FE07  5019 (bots)    *                 lstn  5019<br>11   C0A8FE07  5019 bothead1  192.168.3.9     bot   flags: pucosgwLiA<br>12   C0A8FE07  4443 bothead2  192.168.3.9     bot   flags: pucosgwliA<br>13   C0A8FE07  9300 bothead3  192.168.3.9     bot   flags: pucosgwLiA<br><br>In the above .dccstat paste, the connection to port 5019 is the new link connection, and the connections to ports 6464 and port 6400 are old and unnecessary connections. How can I get rid of these old ones? They seem to last forever  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_mad.gif" width="15" height="15" alt=":x" title="Mad">  Note: these bots exist on a LAN behind a NAT router. <br><br>Thanks.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5909">ZvOO</a> — Wed Feb 02, 2005 12:08 pm</p><hr />
]]></content>
	</entry>
	</feed>
