<?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/9778" />

	<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-06-12T15:01:09-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2005-06-12T15:01:09-04:00</updated>

		<published>2005-06-12T15:01:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=50651#p50651</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=50651#p50651"/>
		<title type="html"><![CDATA[server socket -&gt; crash on rehash]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=50651#p50651"><![CDATA[
when you rehash the bot trys to rebind on the same port which could cause a crash =&gt; try this<br><div class="codebox"><p>Code: </p><pre><code>if {[catch {socket -myaddr "cyberscripters.org" -server Server 63322} s]} {  putlog "Already binded to cyberscripters.org:63322"} else {  putlog "Binded to cyberscripters.org:63322"}</code></pre></div>like stdragon suggests<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Sun Jun 12, 2005 3:01 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Galadhrim]]></name></author>
		<updated>2005-06-09T14:22:22-04:00</updated>

		<published>2005-06-09T14:22:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=50470#p50470</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=50470#p50470"/>
		<title type="html"><![CDATA[server socket -&gt; crash on rehash]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=50470#p50470"><![CDATA[
the system often has a timeout perioud before actually releasing the socket, because a) someone might be trying to send data to the socket and its on its way b) a local program might be trying to send data to the other end and it hasnt been accepted yet so it waits for a conformation.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2999">Galadhrim</a> — Thu Jun 09, 2005 2:22 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[egghead]]></name></author>
		<updated>2005-06-08T23:27:29-04:00</updated>

		<published>2005-06-08T23:27:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=50444#p50444</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=50444#p50444"/>
		<title type="html"><![CDATA[server socket -&gt; crash on rehash]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=50444#p50444"><![CDATA[
Some time ago I made an example based on an existing script (see the top few lines of the script):<br><br>Go to <a href="http://members.fortunecity.com/eggheadtcl/" class="postlink">http://members.fortunecity.com/eggheadtcl/</a><br><br>and then find the script "sockreport.tcl"<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=282">egghead</a> — Wed Jun 08, 2005 11:27 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2005-06-08T13:08:24-04:00</updated>

		<published>2005-06-08T13:08:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=50420#p50420</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=50420#p50420"/>
		<title type="html"><![CDATA[server socket -&gt; crash on rehash]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=50420#p50420"><![CDATA[
You could use the "catch" command to catch the error. Or use "info exists" with another variable like "already_loaded" and set it when your script is loaded.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Wed Jun 08, 2005 1:08 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ex]]></name></author>
		<updated>2005-06-07T22:56:42-04:00</updated>

		<published>2005-06-07T22:56:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=50412#p50412</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=50412#p50412"/>
		<title type="html"><![CDATA[server socket -&gt; crash on rehash]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=50412#p50412"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>proc Server {channel clientaddr clientport} {   putlog "Connection from $clientaddr registered"   puts $channel "[channels]"   close $channel}socket -myaddr "cyberscripters.org" -server Server 63322</code></pre></div>i have this out of a manual. but my problem is, that the eggdrop crashs when rehashing with the errormessage, that this port is already mapped.<br><br>is there a command like info exists for ports?<br>or should i first try to reach the port and only if closed open it again?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6242">ex</a> — Tue Jun 07, 2005 10:56 pm</p><hr />
]]></content>
	</entry>
	</feed>
