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

	<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>2003-05-12T04:43:01-04:00</updated>

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

		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2003-05-12T04:43:01-04:00</updated>

		<published>2003-05-12T04:43:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=20090#p20090</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=20090#p20090"/>
		<title type="html"><![CDATA[socket]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=20090#p20090"><![CDATA[
Aditionaly, try using eggdrops dns functions to resolve the IP before making a connection.<br><br>It may possibly be that Tcl is failing to resolve.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Mon May 12, 2003 4:43 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-05-12T03:49:06-04:00</updated>

		<published>2003-05-12T03:49:06-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=20087#p20087</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=20087#p20087"/>
		<title type="html"><![CDATA[socket]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=20087#p20087"><![CDATA[
Guess I have to test it on other (faster) pc.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Mon May 12, 2003 3:49 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2003-05-12T03:41:44-04:00</updated>

		<published>2003-05-12T03:41:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=20085#p20085</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=20085#p20085"/>
		<title type="html"><![CDATA[socket]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=20085#p20085"><![CDATA[
This sounds weird...if you don't get a reply from the host you're connecting to the connection should time out within less than a minute (the minimum time it would take your bot to ping timeout)<br><br>Try using -async when creating the socket, fconfigure it -blocking 0 and set up a fileevent $bla writable ... dealing with checking the connection. This way there should be no ping timeout no matter how [censored] up your system is <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"><br><br>here's an alternative method of using catch to figure out if there's an error or not when opening the socket: <br>if {[catch {socket ...} bla]} {failed...$bla is the error msg} {connected...$bla is the socket id}<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Mon May 12, 2003 3:41 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-05-12T01:45:02-04:00</updated>

		<published>2003-05-12T01:45:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=20082#p20082</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=20082#p20082"/>
		<title type="html"><![CDATA[socket]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=20082#p20082"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind dcc n| sock dcc:sockproc dcc:sock {hand idx text} {  if {[llength $text] &lt; 2} {    putdcc $idx "Usage: sock &lt;ip&gt; &lt;port&gt;"    return  }  set host [lindex $text 0]  set port [lindex $text 1]  catch {socket $host $port} bla  if {[string match "sock*" $bla]} {    putdcc $idx "connection established."    return  }  putdcc $idx "$bla"}</code></pre></div>when I run an *test* he pings timed out. My local (lan) tests where ok, the internet ones he dies (ping timedout or something). Also I have tryed using the connect but I haven't understood exactly how to *control* it. I haven't got an successful thing with it, duno why. An example or something will be nice.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Mon May 12, 2003 1:45 am</p><hr />
]]></content>
	</entry>
	</feed>
