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

	<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>2011-02-15T09:58:46-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2011-02-15T09:58:46-04:00</updated>

		<published>2011-02-15T09:58:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=96020#p96020</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=96020#p96020"/>
		<title type="html"><![CDATA[php - tcl data sending]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=96020#p96020"><![CDATA[
use server socket<br><br>untested sample code i think it requires tclsh8.5 because of the clock micro<br><div class="codebox"><p>Code: </p><pre><code>proc server_app {s cli_addr cli_port}  {  while {![eof $s]} {    flush $s    gets $s buf    append new_buf $buf\n  }  if {[info exists new_buf]} {    if {![string equal {} $new_buf]} {      set micro [clock micro]      if {![catch {open /tmp/blah.${micro} w} wf]} {        puts $wf $new_buf        putlog "wrote data to /tmp/blah.${micro} received from $cli_addr on port $cli_port"        close $wf      }     }   }  close $s}socket -server server_app 65000</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Tue Feb 15, 2011 9:58 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[putyn]]></name></author>
		<updated>2011-02-08T12:27:34-04:00</updated>

		<published>2011-02-08T12:27:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=95986#p95986</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=95986#p95986"/>
		<title type="html"><![CDATA[php - tcl data sending]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=95986#p95986"><![CDATA[
ok as i was advised i opened a new topic and ill explain here what i want to do <br><br>i want to open a connection from a php script to my eggdrop bot and to send some data (text) to the bot and the bot after reads the data will have to send some data (text) back <br>now i know how send text to the bot from php what i can't figure out how to send data from the bot using the connection made by the php script <br><br>any ideas are appreciated<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11541">putyn</a> — Tue Feb 08, 2011 12:27 pm</p><hr />
]]></content>
	</entry>
	</feed>
