Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
stimmy
Newbie


Joined: 09 Jun 2002
Posts: 1

PostPosted: Sun Jun 09, 2002 9:01 pm   

zChat Protocol
 
I've been working on writing a daemon in perl to interface with an incoming zChat session to parse the sent information, and add it to a database, with future plans of making it bidrectional, and allowing players to query the database through zChat.

I've run into problems at the very start, however, with not having the exact syntax for zChat. What I'd really like is an example of the minimum amount of data to be passed in a zChat session, from beggining to end, and I don't see that it's outlined well in the protocol.

To be more specific, here are some specifics on my code:

I use:


while (defined ($line = <$socket>)) {
print $line;
last
}

To print the initial call. I will get:

"ZCHAT:stimmy"

Then I do this:

print $socket "YES:IDDBn";

And the client has an open connection to the server, with the name displaying as IDDB.

Then, when data is entered into either side, it is no longer displayed. When the session is closed, data is sent to the server. I do haev a loop to read and write to the socket anything sent, but I don't know the minimal syntax for sending information to a client.

Any help anyone could offer would be greatly appreciated.
Reply with quote
TonDiening
GURU


Joined: 26 Jul 2001
Posts: 1958
Location: Canada

PostPosted: Wed Jul 03, 2002 6:25 pm   
 
Perhaps try to ask this on the Developers forum.

Although I note on the info page that you might
want to examine
http://www.andreasen.org/mcl/
quote:

This is an experimental version featuring zChat/MudMaster compatible peer-to-peer chat protocol
..
Partial support for the zChat and MudMaster peer-to-peer chat protocols
..
mcl is under GPL.





Ton Diening
Providing untested answers that tend to be
more complicated than others.
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: Wed Jul 03, 2002 11:43 pm   
 
Also, make sure you have read the zChat Protocol specification at: http://www.zuggsoft.com/zchat/zchatprot.htm

Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net