MudBytes
» MUDBytes Community » Coding Discussions » Custom » EventMud v1.0
Pages: << prev 1 next >>
EventMud v1.0
Erok
Magician




Group: Members
Posts: 64
Joined: Jul 27, 2009

Go to the bottom of the page Go to the top of the page
#1 id:36954 Posted Oct 29, 2009, 10:36 pm

Spurred by an earlier discussion on event driven MUDs, EventMud v1.0 has been uploaded to the code repository under the SocketMud branch.

This is a quick and dirty (as in use this as an example only) migration of SocketMud v1.10 to an event notification library that enables asynchronous i/o and scheduled events.

The event notification library is called libevent, and documentation is available at http://monkey.org/~provos/libevent.  This implementation used v2.0.1 (alpha) of libevent and was tested on a cygwin 1.7 platform.

The main polling loop of SocketMud has been replaced with a dispatch into libevent, and (so far) a set of callbacks to handle socket i/o and a few timers.

flumpy
Wizard






Group: Members
Posts: 623
Joined: Mar 27, 2009

Go to the bottom of the page Go to the top of the page
#2 id:36968 Posted Oct 30, 2009, 6:22 am

URL for completeness:

http://www.mudbytes.net/index.php?a=files&s=viewfile&fid=2708
.........................

GroovyMud - a mud engine written in Java and Groovy

try it out! telnet://zeno.biyg.org:2223


Disclaimer: this project is in alpha, and therefore in heavy development.

Check out GWABS, the desktop battler: from an idea I had on Cambrian House

syn
Conjurer






Group: Members
Posts: 141
Joined: Mar 8, 2007

Go to the bottom of the page Go to the top of the page
#3 id:36973 Posted Oct 30, 2009, 10:41 am

Thanks for putting the time and effort in, that's real nifty :)
.........................

-Crash the silence for the sake of memory
Intrinsic Realities - Coder, Owner

Erok
Magician




Group: Members
Posts: 64
Joined: Jul 27, 2009

Go to the bottom of the page Go to the top of the page
#4 id:36993 Posted Oct 30, 2009, 9:13 pm

No problem.

I just uploaded a minor revision that got rid of some more dead socket code I forgot to delete earlier, and has a few tweaks as well.  If I have time in the coming weeks, I may look into migrating SocketMud++ to ASIO.  It has similar functionality to libevent, but is a C++ implementation.

Erok
Magician




Group: Members
Posts: 64
Joined: Jul 27, 2009

Go to the bottom of the page Go to the top of the page
#5 id:37049 Posted Nov 2, 2009, 11:26 am

Erok said:
I may look into migrating SocketMud++ to ASIO.

So I did, and there's not much point.  SocketMud++ has such minimal functionality that you can simply refer to the ASIO examples, which already include echo and chat servers/clients.

Kjwah
Conjurer






Group: Members
Posts: 207
Joined: Dec 3, 2006

Go to the bottom of the page Go to the top of the page
#6 id:40339 Posted Jan 10, 2010, 1:45 pm

Thanks for releasing this.  This is some pretty nifty code.  :D

Just what I needed to hopefully get me back in the mood to program.

Well, after I finish this homemade 360 vga cable.  ;p
.........................
Dag! Don't mean to sound crunchy
Hit a honey from the back and crumpled up her scrunchie
A light snack, hungry munchie
Felt a funny hunch that she told him donkey punch me

Pages:<< prev 1 next >>
Tags
[+]

Valid XHTML 1.1! Valid CSS!