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

	<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-07-11T02:24:40-04:00</updated>

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

		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2003-07-11T02:24:40-04:00</updated>

		<published>2003-07-11T02:24:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=23297#p23297</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=23297#p23297"/>
		<title type="html"><![CDATA[TCL UDP Q3 rcon problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=23297#p23297"><![CDATA[
Could have something to do with the syntax of fileevent.<br><br>instead of fileevent $s readable [udp_read $s], try this:<br><br>fileevent $s readable [list udp_read $s]<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Fri Jul 11, 2003 2:24 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-07-06T07:19:29-04:00</updated>

		<published>2003-07-06T07:19:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=23127#p23127</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=23127#p23127"/>
		<title type="html"><![CDATA[TCL UDP Q3 rcon problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=23127#p23127"><![CDATA[
Ok, I am using the following tcl script to send a command to a q3 server. It should also receive data back from it, but that just doesn't work.<br><br>I use the tcludp extension that can be found here:<br><a href="http://www1.cs.columbia.edu/~xiaotaow/research/tcludp/" class="postlink">http://www1.cs.columbia.edu/~xiaotaow/research/tcludp/</a><br><br>The command was successfully sent to the server (the game password changed), but the confirmation answer of the server was not received.<br><br>.rcon X.X.X.X 27960<br>-&gt; sending rcon cmd<br>-&gt; rcv<br>-&gt; Tcl error [dcc:sock]: can not find channel named "sock19"<br><br>looks like the socket get's closed before I close it myself. Maybe this is the reason why i can't receive data? I don't know :/<br><div class="codebox"><p>Code: </p><pre><code>load /opt/tcl/lib/udp1.0.5/libudp1.0.5.sobind dcc n| rcon dcc:sockproc udp_read {socket} {        putlog "rcv"        while {[gets $socket line] &gt;= 0} {                putlog "$line"        }        close $socket}proc 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]        set s [udp_open]        udp_conf $s $host $port        puts $s "ÿÿÿÿrcon rconpassword g_password test"        putdcc $idx "sending rcon cmd"        fconfigure $s -buffering full -translation auto        fileevent $s readable [udp_read $s]}</code></pre></div><p>Statistics: Posted by Guest — Sun Jul 06, 2003 7:19 am</p><hr />
]]></content>
	</entry>
	</feed>
