Subj : Several Baja questions
To   : Evan Elias
From : Digital Man
Date : Wed Aug 16 2000 11:37 pm

RE: Several Baja questions
BY: Evan Elias to Digital Man on Wed Aug 16 2000 08:02 pm

> RE: Several Baja questions
> BY: Digital Man to Evan Elias on Wed Aug 16 2000 02:05 am
>
> OTE: DCTEdit v0.04 [14]
>  > Or perhaps even easier (but perhaps not quite as efficient),
>  > create a 32-bit WinSock/telnet version. This could be
>  > Synchronet-specific (getting the socke handle from XTRN.DAT)
>  > or better yet, DOOR32.SYS compatible (which is support by
>  > Synchronet, Mystic and EleBBS at the moment). This would
>  > still be a single-instance per user, but the fact that it
>  > was 32-bit and used sockets directly would improve the
>  > performance dramatically.
>
> Well, only problem for me there is, I don't know much about 32-bit coding :(

In general, 32-bit programming is much like 16-bit programming, but with the
memory limitations. :-) Honestly, as long as you're using a 32-bit development
tool, there aren't many differences, except of course in C/C++ ints are 32-bit
instead of 16-bit (use shorts or longs to specify size).

> So making a Baja port would probably be easier for me.  Plus, I like the
> concept of not having an extra window open for each user in the game, and
> added features like seeing who's online, global paging, etc are always nice.

Look into the Synchronet XSDK for C/C++ programmers. You get all these
advantages and then some.

>  > You can use the OFFLINE Baja function and check for
>  > disconnection manually I think (_sys_status bit ON_REMOTE).
>
> Are there any known issues regarding this that I'll have to worry about? (ie
> functions working differently in offline mode).  One thing that concerned me
> was if you're inputting an entire string in offline mode, I wasn't sure if
> there was a way to detect hang-ups in that case, since the function doesn't
> return until the user hits enter... if they hang up in offline mode, will th
> function terminate or will it just freeze?

I don't know off-hand. You could always experiment with it.

> Thanks for answering all my questions... got one more though :)  Is there an
> easy way to take the current command character and add it to a string?

getkey
strcat my_str str

> I
> noticed there wasn't an option in sprintf to put the command character into
> string, and I didn't see any other ways to do it either, since very few
> functions allow you to manipulate the command char.

The command character is always put into the first character of the command
string, so any function that operates (or can operate) on the command string
(str) can use the command char too.

Rob

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