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

	<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-09-14T12:32:02-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2003-09-14T12:32:02-04:00</updated>

		<published>2003-09-14T12:32:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=27078#p27078</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=27078#p27078"/>
		<title type="html"><![CDATA[Connection established]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=27078#p27078"><![CDATA[
i know if  {[catch [....] error] == 1} just do not understand the manual about that .. could you xplain it maybe little closer .. what it exactly does and what i need to think about when i script this cause ive tryed that and it sometimes did say it connected even tho there was no open port so .. euhm it did connect to the ip but .. well you get the point i think.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Sun Sep 14, 2003 12:32 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2003-09-13T11:17:17-04:00</updated>

		<published>2003-09-13T11:17:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=27058#p27058</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=27058#p27058"/>
		<title type="html"><![CDATA[Connection established]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=27058#p27058"><![CDATA[
Use the "catch" command to catch errors and handle them. It's in the tcl manual.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Sat Sep 13, 2003 11:17 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2003-09-12T20:31:09-04:00</updated>

		<published>2003-09-12T20:31:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=27046#p27046</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=27046#p27046"/>
		<title type="html"><![CDATA[Connection established]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=27046#p27046"><![CDATA[
i know that it connects but when the error comes i got one problem .. witch is that it won't finish the script<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Fri Sep 12, 2003 8:31 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2003-09-12T09:43:18-04:00</updated>

		<published>2003-09-12T09:43:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=27021#p27021</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=27021#p27021"/>
		<title type="html"><![CDATA[Connection established]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=27021#p27021"><![CDATA[
Since you are not using async sockets, you can tell if the socket connects because if it doesn't, you'll get a tcl error.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Fri Sep 12, 2003 9:43 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[strikelight]]></name></author>
		<updated>2003-09-12T03:14:22-04:00</updated>

		<published>2003-09-12T03:14:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=27004#p27004</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=27004#p27004"/>
		<title type="html"><![CDATA[Connection established]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=27004#p27004"><![CDATA[
<blockquote class="uncited"><div><div class="codebox"><p>Code: </p><pre><code>bind dcc - check pcheck:dccproc check:dcc {hand idx arg} {  set hst [lindex $arg 0]  set prt [lindex $arg 1]  set sock [socket $hst $prt]  if {![eof $sock] == 1} {    putlog "Connection established"    close $sock  } else {    putlog "Connection failed."  }}</code></pre></div>ok so far so good but now if the socket can't connect it shows an error .. ?<br><br>also how can i make it connect to an udp port ?</div></blockquote>TCL does not natively support udp connections.  From my understanding, TCL8.4.x was supposed to include support but they decided against it.  You will need to google for a TCL udp extension, or create your own.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2005">strikelight</a> — Fri Sep 12, 2003 3:14 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2003-09-10T21:47:04-04:00</updated>

		<published>2003-09-10T21:47:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=26939#p26939</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=26939#p26939"/>
		<title type="html"><![CDATA[Connection established]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=26939#p26939"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind dcc - check pcheck:dccproc check:dcc {hand idx arg} {  set hst [lindex $arg 0]  set prt [lindex $arg 1]  set sock [socket $hst $prt]  if {![eof $sock] == 1} {    putlog "Connection established"    close $sock  } else {    putlog "Connection failed."  }}</code></pre></div>ok so far so good but now if the socket can't connect it shows an error .. ?<br><br>also how can i make it connect to an udp port ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Wed Sep 10, 2003 9:47 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2003-09-10T18:54:46-04:00</updated>

		<published>2003-09-10T18:54:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=26923#p26923</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=26923#p26923"/>
		<title type="html"><![CDATA[Connection established]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=26923#p26923"><![CDATA[
how do i check this <br><br>socket host port, <br><br>if the connection is established or not <br><div class="codebox"><p>Code: </p><pre><code>proc check:dcc {hand idx arg} {  set hst [lindex $arg 0]  set prt [lindex $arg 1]  set sock [socket $hst $prt]  if {[fileevent readable $sock] == 1} {    putlog "Connection established"  } else {    putlog "Connection failed."  }}</code></pre></div>i know i am missing some stuff on fileevent but how or what do i do after i found out if the connection is readable .? <br><br>i just need to know if a connection can be made to see if a certain port is open ... before i run a sript to perfrom commands on that port ...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Wed Sep 10, 2003 6:54 pm</p><hr />
]]></content>
	</entry>
	</feed>
