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

	<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>2002-11-06T15:10:07-04:00</updated>

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

		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2002-11-06T15:10:07-04:00</updated>

		<published>2002-11-06T15:10:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=12900#p12900</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=12900#p12900"/>
		<title type="html"><![CDATA[a socket with timeout..]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=12900#p12900"><![CDATA[
Your example is using Tcl sockets. You should use the -async option so that it returns immediately. Then set a timer for 10 seconds. If the socket hasn't connected before the timer executes, then kill it. If the socket does connect, kill the timer. See?<br><br>If you want to use eggdrop sockets, which are automatically asynchronous/nonblocking, you do the same thing.<br><br>In both cases, make sure you look up the domain name *first* because they will both block for that operation.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Wed Nov 06, 2002 3:10 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-10-24T16:33:05-04:00</updated>

		<published>2002-10-24T16:33:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=12330#p12330</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=12330#p12330"/>
		<title type="html"><![CDATA[a socket with timeout..]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=12330#p12330"><![CDATA[
set sock [socket &lt;address&gt; &lt;port&gt;]<br>how do i make a timeout? if it not is connected in 10 sec i want it to take next.. like php: fsockopen($adress, $port ,$errno, $errstr, 2);<p>Statistics: Posted by Guest — Thu Oct 24, 2002 4:33 pm</p><hr />
]]></content>
	</entry>
	</feed>
