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

	<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>2009-07-26T17:36:03-04:00</updated>

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

		<entry>
		<author><name><![CDATA[franko]]></name></author>
		<updated>2009-07-26T17:36:03-04:00</updated>

		<published>2009-07-26T17:36:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=89672#p89672</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=89672#p89672"/>
		<title type="html"><![CDATA[tcl connection]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=89672#p89672"><![CDATA[
works fine !!<br><br>thanks m8<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10774">franko</a> — Sun Jul 26, 2009 5:36 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[tomekk]]></name></author>
		<updated>2009-07-26T14:54:00-04:00</updated>

		<published>2009-07-26T14:54:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=89665#p89665</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=89665#p89665"/>
		<title type="html"><![CDATA[tcl connection]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=89665#p89665"><![CDATA[
example:<div class="codebox"><p>Code: </p><pre><code>set port 1234set host 127.0.0.1###########################################bind evnt - prerehash prerehash_procset s_socket [socket -server socket_proc -myaddr $host $port]proc prerehash_proc { type } {        global s_socket        close $s_socket}proc socket_proc { sock host port } {        fconfigure $sock -buffering line        fileevent $sock readable "action $sock $host $port"}proc action { chan host port } {        if {![eof $chan]} {                set data [gets $chan]                if {$data != ""} {                        putquick "PRIVMSG #CHANNEL :data from $host:$port -&gt; data = $data"                }        } {                close $chan        }}</code></pre></div>its working, but you have to fix your PHP code,<br>some hints,<br>1. you don't need to open socket 3 times, you can open it just once, send all data and close it at the end<br>2. don't send tcl command trough socket, send just data and output it with proper eggdrop script<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10332">tomekk</a> — Sun Jul 26, 2009 2:54 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[franko]]></name></author>
		<updated>2009-07-26T13:47:45-04:00</updated>

		<published>2009-07-26T13:47:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=89664#p89664</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=89664#p89664"/>
		<title type="html"><![CDATA[tcl connection]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=89664#p89664"><![CDATA[
Hello..<br>Hope that anybody can help me here<br><br>I coded a PHP script which sends Information to the Eggdrop.<br><br>My problem is that i dont receive them correctly..<br><br>Here a snippet from my PHP script:<br><div class="codebox"><p>Code: </p><pre><code>$host="IP";$port="PORT";$pass="PW";$channel="#channel";$channel2="#channel2";if($board[cforum] !=="1"){     if($board[uploadsystem]=="2") {       if ($board['invisible']==0) {                              if ($fp=@fsockopen($host,$port,$errno,$errstr,30)) {                     fputs($fp,$pass."\r\n");                     fputs($fp,"PRIVMSG $channel : \0034\002[New]\003\002 \002$name\002 \0034\002[Poster]\003\002 \002$poster @ $user_c\002\r\n ");                     fclose($fp);                     $fp=@fsockopen($host,$port,$errno,$errstr,30);                     fputs($fp,$pass."\r\n");                     fputs($fp,"PRIVMSG $channel : \0034\002[Section]\003\002 \002$board[title]\002 \0034\002[Loc]\003\002 \002$country[country_name]\002 \0034\002[time]\003\002 \002$time2\002\r\n ");                     fclose($fp);                                                               $fp=@fsockopen($host,$port,$errno,$errstr,30);                     fputs($fp,$pass."\r\n");                     fputs($fp,"PRIVMSG $channel : \0034\002[URL]\003\002 \002$URL\002 \r\n ");                     fclose($fp);                    }}}</code></pre></div>Anybody an idea how to receive this Information?<br><br>lg franko<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10774">franko</a> — Sun Jul 26, 2009 1:47 pm</p><hr />
]]></content>
	</entry>
	</feed>
