Subj : Several Baja questions
To   : All
From : Evan Elias
Date : Tue Aug 15 2000 02:59 pm

OTE: DCTEdit v0.04 [10]
I've been tinkering with the idea of porting my game DoorMUD to baja, sort of
anyway.  It would work by having an external "server" program (ie, a standard
EXE written w/ C++, that isn't a door) running in the background while players
are in the game.  A Baja "client" module would communicate with the server,
using files for input and output.  I think this might have the potential to be
very efficient, since only one copy of the server would need to be running at
any time.  So if 5 users were in the game, only 1 DOS program would be
running, instead of 5.

However, I have a few Baja questions before I can get started on this:

1. How fast/efficient are the Baja file manipulation routines?  When
file-sharing is used, is it compatible with C's sopen function?

2. How do I open files in binary mode?  Or is that the default for baja's
fopen?

3. Which system variable stores the node number?  (I wasn't sure if
_USERON.NUMBER was the node number or the account number)

4. What happens when a user hangs up?  Does the module just quit?  That would
be very bad for me, since the MUD needs to perform routines so that the player
is no longer listed as online... is there a way to set a certain subroutine to
be called in case of a hang-up?

Any help is GREATLY appreciated :)

Thanks,
Evan Elias
http://dmud.thebbs.org

---
� Synchronet � Vertrauen � Home of Synchronet � telnet://vert.synchro.net