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

	<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-10T08:38:27-04:00</updated>

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

		<entry>
		<author><name><![CDATA[VaVaVooM]]></name></author>
		<updated>2003-05-10T08:38:27-04:00</updated>

		<published>2003-05-10T08:38:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=20008#p20008</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=20008#p20008"/>
		<title type="html"><![CDATA[detect server]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=20008#p20008"><![CDATA[
I don't think i can..<br><br>But anyway, the problem is solved by using the <em class="text-italics">socket</em> instead of <em class="text-italics">connect</em>, since this doesn't gets jammed when a host doesn't resolve..<br>And it always returns something.. And that was what i was looking for..<br><br>thanks again.. <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=2703">VaVaVooM</a> — Sat May 10, 2003 8:38 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2003-05-09T08:11:42-04:00</updated>

		<published>2003-05-09T08:11:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=19979#p19979</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=19979#p19979"/>
		<title type="html"><![CDATA[detect server]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=19979#p19979"><![CDATA[
I havn't checked, but with that valid IDX, you may be able to perform lsearch requests on the output from dccstat.<br><br>Aditionaly, it can't be blocking forever. If you are able to rehash, then there is no block. Block means the code is at a point, where another program, or some code has to return, before the main loop can continue.<br><br>The main loop must be running if eggdrop is able to read the socket, and process your rehash command.<br><br>As such, can you define the differance between using it on a valid address, and one that results in what you called a blcok?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Fri May 09, 2003 8:11 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[VaVaVooM]]></name></author>
		<updated>2003-05-09T08:02:30-04:00</updated>

		<published>2003-05-09T08:02:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=19978#p19978</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=19978#p19978"/>
		<title type="html"><![CDATA[detect server]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=19978#p19978"><![CDATA[
hey []<br><br>Thanks <strong class="text-strong">user</strong> <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br><strong class="text-strong">ppslim</strong>: The script blocks forever, or until i do a <span style="text-decoration:underline">.rehash</span>.. By the way, the script is activated by a public command..<br><br>This time, i read that part of the sockets beeing asynchronous at tcl-commands.doc  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=":wink:" title="Wink">  , but i thought that it had to return a value that could be distinguished.. For this i tried to use the <em class="text-italics">valididx</em> command, but he always returned a valid connection (idx).. And that was the main problem of the script.<br><br>bye []<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2703">VaVaVooM</a> — Fri May 09, 2003 8:02 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2003-05-07T05:08:49-04:00</updated>

		<published>2003-05-07T05:08:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=19904#p19904</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=19904#p19904"/>
		<title type="html"><![CDATA[detect server]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=19904#p19904"><![CDATA[
One question.<br><br>You are saying that if you give a hostname that doesn't resolve, the script blocks forever, or until a resolve error occurs?<br><br>If you are on about the resolve error, of cause it has to block. How on earth can it attempt to connect, until it has the IP address?<br><br><br>On top, the documentation states that the sockets are asynchronous, meaning they return right away, regardless of connection status. This is documented in the last part of tcl-commands.doc<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Wed May 07, 2003 5:08 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2003-05-06T19:42:32-04:00</updated>

		<published>2003-05-06T19:42:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=19897#p19897</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=19897#p19897"/>
		<title type="html"><![CDATA[detect server]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=19897#p19897"><![CDATA[
By using socket instead of connect (<a href="http://tcl.tk/man/tcl8.4/TclCmd/socket.htm" class="postlink">http://tcl.tk/man/tcl8.4/TclCmd/socket.htm</a>)<br><br>something like this...<div class="codebox"><p>Code: </p><pre><code>if {[catch {socket $srvrhost $srvrport} x]} {    putserv "privmsg $chan :Server is offline ($x)" } else {    putserv "privmsg $chan :Server is online"    close $x}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Tue May 06, 2003 7:42 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[VaVaVooM]]></name></author>
		<updated>2003-05-06T19:31:25-04:00</updated>

		<published>2003-05-06T19:31:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=19896#p19896</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=19896#p19896"/>
		<title type="html"><![CDATA[detect server]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=19896#p19896"><![CDATA[
hi<br><br>how can i find out if a certain server is online, and if he has a port open to incoming connections?<br>the server to check is a game server..<br>i tried this:<div class="codebox"><p>Code: </p><pre><code>   set sidx ""   set sidx [connect $srvrhost $srvrport]    if {$sidx == ""} {     putserv "privmsg $chan :Server is offline"    } else {     putserv "privmsg $chan :Server is online"    }</code></pre></div>but i always get a valid idx, even if i can't connect!!!<br><br>another problem, is that if i get a DNS error the script blocks <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_neutral.gif" width="15" height="15" alt=":|" title="Neutral"><br><br>bye<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2703">VaVaVooM</a> — Tue May 06, 2003 7:31 pm</p><hr />
]]></content>
	</entry>
	</feed>
