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

	<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>2004-05-07T17:47:54-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Kripton]]></name></author>
		<updated>2004-05-07T17:47:54-04:00</updated>

		<published>2004-05-07T17:47:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=36182#p36182</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=36182#p36182"/>
		<title type="html"><![CDATA[Problem with &quot;puts&quot; to sock]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=36182#p36182"><![CDATA[
Yes, ok! GIFs work mostly, JPEGs don't! I will work on the binary-support! But for sending commands to the eggdrop, its yet enough! Maybe, if I have more time!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4364">Kripton</a> — Fri May 07, 2004 5:47 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2004-05-07T17:28:37-04:00</updated>

		<published>2004-05-07T17:28:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=36181#p36181</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=36181#p36181"/>
		<title type="html"><![CDATA[Problem with &quot;puts&quot; to sock]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=36181#p36181"><![CDATA[
yep same with the script above i posted <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"> i am still working on the http admin interface tho the webserver is function nal and supports gif jpg .. and so on maybe suggestion for ur next version <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Fri May 07, 2004 5:28 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Kripton]]></name></author>
		<updated>2004-05-07T09:29:54-04:00</updated>

		<published>2004-05-07T09:29:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=36176#p36176</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=36176#p36176"/>
		<title type="html"><![CDATA[Problem with &quot;puts&quot; to sock]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=36176#p36176"><![CDATA[
Ok, it works now! Yes, the error was within the HTTP-Headers!<br>I think I just paste the URL to my script here (Yes, it works <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"> ), because I think it might be helpful to some purposes! The special thing is, you can script your WebPages (In a way like PHP). A little example:<div class="codebox"><p>Code: </p><pre><code> &lt;egg&gt; set output "[llength [chanlist #chan]]" &lt;/egg&gt; </code></pre></div>in your html-file whould return the number of peeps in a chan on the viewers WebBrowser! This is better than creating WebPages with your EggDrop and hosting them with another WebServer because they are really updated in realtime and you can execute every code you want on your eggdrop!<br>I named it EWIO (<strong class="text-strong">E</strong>ggdrop <strong class="text-strong">W</strong>ebserver with <strong class="text-strong">I</strong>nteractive <strong class="text-strong">O</strong>utput)<br>Might be good or just [censored] <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"><br><br><a href="http://82.165.25.75/~kripton/ewio.tcl" class="postlink">http://82.165.25.75/~kripton/ewio.tcl</a><br><br>NOTE: This Script is not 100% made by me, but I don't know where I got the WebServer-Part from! SORRY<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4364">Kripton</a> — Fri May 07, 2004 9:29 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2004-05-04T16:03:54-04:00</updated>

		<published>2004-05-04T16:03:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=36109#p36109</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=36109#p36109"/>
		<title type="html"><![CDATA[Problem with &quot;puts&quot; to sock]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=36109#p36109"><![CDATA[
<a href="http://cvs.ofloo.net/httpadm/" class="postlink">http://cvs.ofloo.net/httpadm/</a><br><br>take a look at this it is a webserver i am writing with http admin still workin on the admin part but the webserver is functional ..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Tue May 04, 2004 4:03 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2004-05-04T15:52:41-04:00</updated>

		<published>2004-05-04T15:52:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=36108#p36108</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=36108#p36108"/>
		<title type="html"><![CDATA[Problem with &quot;puts&quot; to sock]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=36108#p36108"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>fconfigure $sock -blocking 0 -buffering line </code></pre></div>or try this instead of flushing each time worked for me so far .. just put that first then gets line and puts line<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Tue May 04, 2004 3:52 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2004-05-03T16:32:51-04:00</updated>

		<published>2004-05-03T16:32:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=36079#p36079</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=36079#p36079"/>
		<title type="html"><![CDATA[Problem with &quot;puts&quot; to sock]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=36079#p36079"><![CDATA[
First, you don't need to flush the socket every time through the loop. Once after the loop would be fine. Second, why such a big buffersize? Puts will increase the buffer as it needs it, so you shouldn't need to set such a big one initially. Third, the problem could easily be somewhere else. Where do you close the socket? Do you send the correct http response and headers?<br><br>If you want to send the whole file, why don't you try something like:<br><br>set fp [open $file r]<br>set html [read $fp]<br>close $fp<br>puts -nonewline $sock $html<br>close $sock<br><br>If you want to transfer very large files (megabytes) then the fcopy command is better.. or at least sending it one part at a time, with fileevent.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Mon May 03, 2004 4:32 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Kripton]]></name></author>
		<updated>2004-05-03T14:48:15-04:00</updated>

		<published>2004-05-03T14:48:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=36074#p36074</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=36074#p36074"/>
		<title type="html"><![CDATA[Problem with &quot;puts&quot; to sock]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=36074#p36074"><![CDATA[
I got my EggDrop running as WebServer! The problem is, the Bot doesn't send the hole text, it stops after approx. 20 lines! The Script (just the sock-send-part):<blockquote class="uncited"><div>fconfigure $sock -translation binary -buffersize 1000000 -blocking 0<br>set filechan [open $servfile r]<br>while {![eof $filechan]} {<br>gets $filechan html<br>puts $sock $html<br>flush $sock<br>}<br>close $filechan</div></blockquote>What I found out: It can read the whole textfile. It must be the output to the socket! I was reading about "blocking", "nonblocking", "vwait" and "Tcl_DoOneEvent"! Of course all my tests with this failed and I got even more confused about it!<br><br>The Delay-Command (tcl_sleep) didn't work as well!<br><br>How can I solve this problem?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4364">Kripton</a> — Mon May 03, 2004 2:48 pm</p><hr />
]]></content>
	</entry>
	</feed>
