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

	<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>2006-04-15T16:00:43-04:00</updated>

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

		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2006-04-15T16:00:43-04:00</updated>

		<published>2006-04-15T16:00:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=61972#p61972</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=61972#p61972"/>
		<title type="html"><![CDATA[modules and multi-threading]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=61972#p61972"><![CDATA[
<blockquote class="uncited"><div><blockquote class="uncited"><div>Anyone seen/used any other approach?</div></blockquote><blockquote class="uncited"><div>nothing to download there, so it's basically irrelevant to this forum's purpose (at least as I understand it - it's not about MT in general and even not about the programming in general, but about eggdrop and eggdrop modules programming - and eggdrop is open-source)</div></blockquote>I'm sorry if you feel that's irrelevant but I was merely responding to Kappa's post, I apologize if I offended you in the process of contributing to this thread. I'm not trying to start a flamewar here or anything I was just merely responding to the author of this thread.</div></blockquote>no offense taken, you've done a good job; hopefully you'll share it some day with the community<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Sat Apr 15, 2006 4:00 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Kappa007]]></name></author>
		<updated>2006-04-15T11:41:54-04:00</updated>

		<published>2006-04-15T11:41:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=61961#p61961</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=61961#p61961"/>
		<title type="html"><![CDATA[modules and multi-threading]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=61961#p61961"><![CDATA[
No hurry, i'll put my stuff under public domain once i got time to cleanup the code...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6524">Kappa007</a> — Sat Apr 15, 2006 11:41 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[heretic^]]></name></author>
		<updated>2006-04-15T06:12:24-04:00</updated>

		<published>2006-04-15T06:12:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=61952#p61952</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=61952#p61952"/>
		<title type="html"><![CDATA[modules and multi-threading]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=61952#p61952"><![CDATA[
<blockquote class="uncited"><div>Anyone seen/used any other approach?</div></blockquote><blockquote class="uncited"><div>nothing to download there, so it's basically irrelevant to this forum's purpose (at least as I understand it - it's not about MT in general and even not about the programming in general, but about eggdrop and eggdrop modules programming - and eggdrop is open-source)</div></blockquote>I'm sorry if you feel that's irrelevant but I was merely responding to Kappa's post, I apologize if I offended you in the process of contributing to this thread. I'm not trying to start a flamewar here or anything I was just merely responding to the author of this thread.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4726">heretic^</a> — Sat Apr 15, 2006 6:12 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2006-04-14T21:44:29-04:00</updated>

		<published>2006-04-14T21:44:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=61930#p61930</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=61930#p61930"/>
		<title type="html"><![CDATA[modules and multi-threading]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=61930#p61930"><![CDATA[
<blockquote class="uncited"><div><blockquote class="uncited"><div>so where is your <strong class="text-strong">working, fully functional</strong> stuff? (addressing both kappa &amp; heretic)<br><br>if it's supposed to serve the general public, please provide a download link to it<br><br>if it's private, I see no point of discussing it here</div></blockquote><a href="http://www.scorebots.org" class="postlink">http://www.scorebots.org</a></div></blockquote>nothing to download there, so it's basically irrelevant to this forum's purpose (at least as I understand it - it's not about MT in general and even not about the programming in general, but about eggdrop and eggdrop modules programming - and eggdrop is open-source)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Fri Apr 14, 2006 9:44 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[heretic^]]></name></author>
		<updated>2006-04-14T19:31:47-04:00</updated>

		<published>2006-04-14T19:31:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=61920#p61920</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=61920#p61920"/>
		<title type="html"><![CDATA[modules and multi-threading]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=61920#p61920"><![CDATA[
yes, multi-threaded in the fact that if channel #a has ScoreBot-01 and channel #b has ScoreBot-01 and they're both running a scorebot at the same time, then there are 2 threads running the scorebot code.<br><br>each thread has to allocate at least 1 UDP socket, and sometimes 1 TCP socket to connect to and interact with the desired gameserver, then it parses the gamelogs updates a few player nodes, and outputs through a thread-safe function<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4726">heretic^</a> — Fri Apr 14, 2006 7:31 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2006-04-14T17:17:05-04:00</updated>

		<published>2006-04-14T17:17:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=61908#p61908</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=61908#p61908"/>
		<title type="html"><![CDATA[modules and multi-threading]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=61908#p61908"><![CDATA[
so basicly every single scorebot is single threaded again?! Thats no multithreading like demond wanted it to hear <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy">. The problems that occur with multithreading is only meaningfull, when there is more than one thread for the same bot/IRC connection.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Fri Apr 14, 2006 5:17 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[heretic^]]></name></author>
		<updated>2006-04-14T16:02:59-04:00</updated>

		<published>2006-04-14T16:02:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=61902#p61902</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=61902#p61902"/>
		<title type="html"><![CDATA[modules and multi-threading]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=61902#p61902"><![CDATA[
<blockquote class="uncited"><div>so where is your <strong class="text-strong">working, fully functional</strong> stuff? (addressing both kappa &amp; heretic)<br><br>if it's supposed to serve the general public, please provide a download link to it<br><br>if it's private, I see no point of discussing it here</div></blockquote><a href="http://www.scorebots.org" class="postlink">http://www.scorebots.org</a><br><br>I cant really release the source code, but i'm more than willing to supply help to anyone that needs it.<br><br>I basically created a cmodule to run multiple "scorebots" per single eggdrop. The reason why I needed to use threads instead of some "polling" system was to create real time output in relation to the "scorebot".  Right now I run a free IRC service to the users of the GameSurge network. Currently we are serving over 500 channels.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4726">heretic^</a> — Fri Apr 14, 2006 4:02 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2006-04-10T11:36:13-04:00</updated>

		<published>2006-04-10T11:36:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=61803#p61803</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=61803#p61803"/>
		<title type="html"><![CDATA[modules and multi-threading]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=61803#p61803"><![CDATA[
<blockquote class="uncited"><div>I think I might change to the "use-tcl-sockets-for-IPC" approach De Kus mentioned.<br>Just "feels" better than polling some queue once a second.</div></blockquote>actually its polled about once every half second. when I used fileevent with millisecond timestamps I noticed they are always in 500ms steps. But usually it doesnt matter if your bot response in 100ms or 500ms, since the user on IRC will both see due to server queue usually at the same time.<br><br>A valid use of thread safe eggdrop would be, if you cannot fork into a child process for some reason (like sharing larger amount of data for fast acccess in both ways). But for that purpose you could still hack into the eggdrop mainloop to exchange data with the child without touching offer parts of the bot.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Mon Apr 10, 2006 11:36 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2006-04-10T03:03:40-04:00</updated>

		<published>2006-04-10T03:03:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=61789#p61789</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=61789#p61789"/>
		<title type="html"><![CDATA[modules and multi-threading]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=61789#p61789"><![CDATA[
so where is your <strong class="text-strong">working, fully functional</strong> stuff? (addressing both kappa &amp; heretic)<br><br>if it's supposed to serve the general public, please provide a download link to it<br><br>if it's private, I see no point of discussing it here<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Mon Apr 10, 2006 3:03 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Kappa007]]></name></author>
		<updated>2006-04-10T02:54:25-04:00</updated>

		<published>2006-04-10T02:54:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=61788#p61788</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=61788#p61788"/>
		<title type="html"><![CDATA[modules and multi-threading]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=61788#p61788"><![CDATA[
See, i'm not the only one  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><br><br>Nevertheless, I think I might change to the "use-tcl-sockets-for-IPC" approach De Kus mentioned.<br>Just "feels" better than polling some queue once a second.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6524">Kappa007</a> — Mon Apr 10, 2006 2:54 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[heretic^]]></name></author>
		<updated>2006-04-09T21:17:32-04:00</updated>

		<published>2006-04-09T21:17:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=61787#p61787</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=61787#p61787"/>
		<title type="html"><![CDATA[modules and multi-threading]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=61787#p61787"><![CDATA[
Yes, i've done this before. I made a thread-safe wrapper for eggdrop's i/o functionality, and yes I did have a valid use for threads as well. It all works great.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4726">heretic^</a> — Sun Apr 09, 2006 9:17 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Kappa007]]></name></author>
		<updated>2006-04-01T19:08:59-04:00</updated>

		<published>2006-04-01T19:08:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=61576#p61576</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=61576#p61576"/>
		<title type="html"><![CDATA[modules and multi-threading]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=61576#p61576"><![CDATA[
Actually that's the purpose i'm using it already for.<br>Using MySQL++ in a separate thread...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6524">Kappa007</a> — Sat Apr 01, 2006 7:08 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2006-04-01T03:31:32-04:00</updated>

		<published>2006-04-01T03:31:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=61553#p61553</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=61553#p61553"/>
		<title type="html"><![CDATA[modules and multi-threading]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=61553#p61553"><![CDATA[
<blockquote class="uncited"><div>Well benefits are: you can use (foreign) code which uses blocking calls in your modules w/o having to worry about your eggdrop beeing stalled.<br>And that's enough for me <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>And if that does not count for you then it's just about the possibility to use them at all  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"></div></blockquote>well, you're still on the proof-of-concept stage<br><br>I'd applaud if you roll out, say, a non-blocking mysql module<br><br>and I'd admire you for producing multi-server MT eggdrop<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Sat Apr 01, 2006 3:31 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Kappa007]]></name></author>
		<updated>2006-03-31T14:32:34-04:00</updated>

		<published>2006-03-31T14:32:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=61550#p61550</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=61550#p61550"/>
		<title type="html"><![CDATA[modules and multi-threading]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=61550#p61550"><![CDATA[
Ehhh yes I read it, i even replied in case you didn't notice...<br><blockquote class="uncited"><div>Yeah, that's also a nice idea to handle that topic.<br>Didn't even think about that <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"></div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6524">Kappa007</a> — Fri Mar 31, 2006 2:32 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2006-03-31T06:44:40-04:00</updated>

		<published>2006-03-31T06:44:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=61547#p61547</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=61547#p61547"/>
		<title type="html"><![CDATA[modules and multi-threading]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=61547#p61547"><![CDATA[
<blockquote class="uncited"><div>Well benefits are: you can use (foreign) code which uses blocking calls in your modules w/o having to worry about your eggdrop beeing stalled.<br>And that's enough for me <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"></div></blockquote>Did you read my post? Its absoludly possible to run asyncron tasks. Btw. the reason eggdrop is so popular is, <strong class="text-strong">because</strong> its single threaded. That way shells can restrict eggdrop shells to 1 bg process. For further background tasks possible. Furthermore 1 bg process eggdrop = 1 IRC connection. For hosting on a general shell account with multiple back processes and connections allowed it might be usefull, but that wouldnt be all. Eggdrop is and will always keep single threaded and single server for these reasons. You can however still fork into a forground thread to execute async calls as mentioned above by me.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Fri Mar 31, 2006 6:44 am</p><hr />
]]></content>
	</entry>
	</feed>
