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

	<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-08-10T07:00:52-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-08-10T07:00:52-04:00</updated>

		<published>2002-08-10T07:00:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=9592#p9592</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=9592#p9592"/>
		<title type="html"><![CDATA[[request] a Socket check script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=9592#p9592"><![CDATA[
I dont really understand :/<br>As i said I am a tcl noob.<p>Statistics: Posted by Guest — Sat Aug 10, 2002 7:00 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-08-10T06:29:53-04:00</updated>

		<published>2002-08-10T06:29:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=9591#p9591</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=9591#p9591"/>
		<title type="html"><![CDATA[[request] a Socket check script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=9591#p9591"><![CDATA[
thank you.<p>Statistics: Posted by Guest — Sat Aug 10, 2002 6:29 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2002-08-09T23:31:23-04:00</updated>

		<published>2002-08-09T23:31:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=9583#p9583</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=9583#p9583"/>
		<title type="html"><![CDATA[[request] a Socket check script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=9583#p9583"><![CDATA[
I didn't test this, just sort of wrote it down, but maybe it will work for you. You call it like<br><br>test_host_port yahoo.com 82 my_callback<br><br>and you define a proc called my_callback like:<br><br>proc my_callback {host port err} {<br>  if {$err == ""} { putlog "$host : $port is open" } else { putlog "couldn't connect to $host : $port - $err" }<br>}<br><br>anyway, here's the code:<div class="codebox"><p>Code: </p><pre><code>proc test_host_port {host port callback} {  # first resolve the host to an ip (async)  dnslookup $host [list host_resolved $callback $port]}proc host_resolved {callback port ip host success} {  # see if we have a valid ip  if {![string compare $ip "0.0.0.0"]} {    eval $callback [list $host $port 0]    return 1  }  # now open an async socket  set sock [socket -async $ip $port]  fileevent $sock writable [list sock_result $callback $host $port $sock]}proc sock_result {callback host port sock} {  set err [fconfigure $sock -error]  close $sock  eval $callback [list $host $port $err]}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Fri Aug 09, 2002 11:31 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-08-09T10:51:38-04:00</updated>

		<published>2002-08-09T10:51:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=9561#p9561</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=9561#p9561"/>
		<title type="html"><![CDATA[[request] a Socket check script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=9561#p9561"><![CDATA[
hello.<br><br>I am a noob in tcl and never scripted any tcl scripts before but I also have no time to learn TCL since I follow college and work on my website alott.<br>I am looking for a tcl script that will check if a server+port is online.<br>Currently I have a website version of it with using the php fsockopen commando, look here: <a href="http://hbr.relaxz.net/?page=status" class="postlink">http://hbr.relaxz.net/?page=status</a><br>And i was wondering how to make it a tcl eggdrop addon so people can use a commando like !online [number or server name] to see if it is online or now.<br><br>Thanks.<p>Statistics: Posted by Guest — Fri Aug 09, 2002 10:51 am</p><hr />
]]></content>
	</entry>
	</feed>
