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

	<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>2005-03-08T04:35:46-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2005-03-08T04:35:46-04:00</updated>

		<published>2005-03-08T04:35:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47317#p47317</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47317#p47317"/>
		<title type="html"><![CDATA[socket info]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47317#p47317"><![CDATA[
never mind i found out server socket waits untill one thread is done then moves on to the next one..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Tue Mar 08, 2005 4:35 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-03-07T14:19:25-04:00</updated>

		<published>2005-03-07T14:19:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47293#p47293</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47293#p47293"/>
		<title type="html"><![CDATA[socket info]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47293#p47293"><![CDATA[
no and no<br><br>it won't create a new interpreter<br><br>it won't overwrite other connection's data<br><br>quoting from [socket] manpage:<blockquote class="uncited"><div>Server sockets depend on the Tcl event mechanism to find out when new connections are opened. If the application doesn't enter the event loop, for example by invoking the vwait command or calling the C procedure Tcl_DoOneEvent, then no connections will be accepted.</div></blockquote>I'm unsure what exactly your problem is; maybe you need to clarify<br><br>If you just need to get a TCL server app to work, check out TCL's wiki for simple examples<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Mon Mar 07, 2005 2:19 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2005-03-06T20:58:23-04:00</updated>

		<published>2005-03-06T20:58:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47268#p47268</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47268#p47268"/>
		<title type="html"><![CDATA[socket info]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47268#p47268"><![CDATA[
<blockquote class="uncited"><div>TCL doesn't implement threads - but you can emulate threads using multiple interpeters; there is however the Thread extension which allows you to experience the wonderful pitfalls of multithreaded programming<br><br>I highly doubt you need threads to drive your purely event-driven I/O tasks</div></blockquote>just as i expected but i can't say that answers my question.. does socket -server open a new interpreter each time yes or no ? also i sad "like" threads never sad it used em, if it uses multiple sessions i know it would open tclsh just an other time .. thing is does it yes or no .. <br><br>so basicly does server socket open a new interpreter which i highly doubt<br><br>it also can open a new interpreter without making a new scope like this it could make one scope and multiple threads..<br><div class="codebox"><p>Code: </p><pre><code>socket -server server 6666proc server {s i p} {  global somevar}</code></pre></div>for example if the above is the case and 2 connections are made at once will somevar overwrite the data in the other connection ? or will it delay it and finish one at the time ..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Sun Mar 06, 2005 8:58 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-03-06T17:37:35-04:00</updated>

		<published>2005-03-06T17:37:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47254#p47254</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47254#p47254"/>
		<title type="html"><![CDATA[socket info]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47254#p47254"><![CDATA[
TCL doesn't implement threads - but you can emulate threads using multiple interpeters; there is however the Thread extension which allows you to experience the wonderful pitfalls of multithreaded programming<br><br>I highly doubt you need threads to drive your purely event-driven I/O tasks<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Sun Mar 06, 2005 5:37 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2005-03-06T15:39:39-04:00</updated>

		<published>2005-03-06T15:39:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47247#p47247</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47247#p47247"/>
		<title type="html"><![CDATA[socket info]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47247#p47247"><![CDATA[
<blockquote class="uncited"><div><img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> I guess the only way to find out is to use it for a while.<br>Variable arrays based on -socketname (if used) may help.<br>Hard to give advice with not enough info for me to work with.</div></blockquote>its not me whom is gone use it so i might find out only months later.. couldn't hurt to ask tho ..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Sun Mar 06, 2005 3:39 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[DragnLord]]></name></author>
		<updated>2005-03-06T14:07:22-04:00</updated>

		<published>2005-03-06T14:07:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47241#p47241</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47241#p47241"/>
		<title type="html"><![CDATA[socket info]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47241#p47241"><![CDATA[
<img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> I guess the only way to find out is to use it for a while.<br>Variable arrays based on -socketname (if used) may help.<br>Hard to give advice with not enough info for me to work with.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4461">DragnLord</a> — Sun Mar 06, 2005 2:07 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2005-03-06T13:53:00-04:00</updated>

		<published>2005-03-06T13:53:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47238#p47238</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47238#p47238"/>
		<title type="html"><![CDATA[socket info]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47238#p47238"><![CDATA[
hmm its kinda big it works its finished just don't wana come before suprises later on.. more then one file..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Sun Mar 06, 2005 1:53 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[DragnLord]]></name></author>
		<updated>2005-03-06T13:45:36-04:00</updated>

		<published>2005-03-06T13:45:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47237#p47237</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47237#p47237"/>
		<title type="html"><![CDATA[socket info]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47237#p47237"><![CDATA[
I misunderstood what your aim was.<br>Can you post some of the code you want to use?<br>Might help to understand it a little better.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4461">DragnLord</a> — Sun Mar 06, 2005 1:45 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2005-03-06T09:40:30-04:00</updated>

		<published>2005-03-06T09:40:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47229#p47229</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47229#p47229"/>
		<title type="html"><![CDATA[socket info]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47229#p47229"><![CDATA[
<blockquote class="uncited"><div>according to the TCL doc, it does.<blockquote class="uncited"><div>For <strong class="text-strong">each</strong> connection Tcl will create a new channel that may be used to communicate with the client.</div></blockquote>but probably these functions itself cannot run at the same time, they will run one after another. but that should be no problem. when you use non-blocking I/O.</div></blockquote>my question is if there will be a new scope for each connection like threads with a parrent its actualy for my webserver in tcl i am asking i can't find the thread on the forum but i once asked how to do code evaluation there did user suggested to use namespaces and a global return variable problem is if sessions do overwrite each other then i can't use global variables like that (not the command global but variable, just saying global variable cause i mean its not local inside the proc)<br><blockquote class="uncited"><div>using the -async switch usually yields the best results with sockets<br>if you find a better way, please let us know <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"></div></blockquote>-async is not supported by servers<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Sun Mar 06, 2005 9:40 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2005-03-06T03:46:14-04:00</updated>

		<published>2005-03-06T03:46:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47219#p47219</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47219#p47219"/>
		<title type="html"><![CDATA[socket info]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47219#p47219"><![CDATA[
<blockquote class="uncited"><div>no i am asking for global variables so they don't overwrite eachother..</div></blockquote>there are no global default variables using [socket -server &lt;port&gt;], or are you asking something else?<br>if you are going to save the sock# like $::sock you will of course encounter an overwrite of the variable, but luckly you won't need to save it outside the interacting proc, because the proc will be called with the sock# as argument, maybe you should <strong class="text-strong">really</strong> read The Manual?!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Sun Mar 06, 2005 3:46 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[DragnLord]]></name></author>
		<updated>2005-03-06T02:08:16-04:00</updated>

		<published>2005-03-06T02:08:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47217#p47217</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47217#p47217"/>
		<title type="html"><![CDATA[socket info]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47217#p47217"><![CDATA[
using the -async switch usually yields the best results with sockets<br>if you find a better way, please let us know <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4461">DragnLord</a> — Sun Mar 06, 2005 2:08 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2005-03-05T22:05:36-04:00</updated>

		<published>2005-03-05T22:05:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47213#p47213</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47213#p47213"/>
		<title type="html"><![CDATA[socket info]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47213#p47213"><![CDATA[
no i am asking for global variables so they don't overwrite eachother..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Sat Mar 05, 2005 10:05 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2005-03-05T19:57:42-04:00</updated>

		<published>2005-03-05T19:57:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47211#p47211</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47211#p47211"/>
		<title type="html"><![CDATA[socket info]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47211#p47211"><![CDATA[
according to the TCL doc, it does.<blockquote class="uncited"><div>For <strong class="text-strong">each</strong> connection Tcl will create a new channel that may be used to communicate with the client.</div></blockquote>but probably these functions itself cannot run at the same time, they will run one after another. but that should be no problem. when you use non-blocking I/O.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Sat Mar 05, 2005 7:57 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2005-03-05T14:54:31-04:00</updated>

		<published>2005-03-05T14:54:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47194#p47194</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47194#p47194"/>
		<title type="html"><![CDATA[socket info]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47194#p47194"><![CDATA[
is a server socket in tcl multi threaded under an eggdrop yes or no..<br><br>can there be 2 sessions at once ..?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Sat Mar 05, 2005 2:54 pm</p><hr />
]]></content>
	</entry>
	</feed>
