Phantasmal MUD Lib for DGD

Phantasmal Site > DGD > Getting DGD > Network Patch

Problems Specific to the DGD Network Patch

From: Greg Lewis
Subject: Re: [DGD] Would the Net package kill binary connections?
Date: Wed, 29 Sep 2004 22:35:15 -0600

On Wed, Sep 29, 2004 at 11:35:16PM -0400, John Ruiz wrote:
> I'm running dgd-1.2p4 + net/ansi/comment on SuSE 9.1.  I'm building on 
> top of the net-patched kernel lib.
> 
> In my .dgd config file, I specify the telnet port as 6047 and the binary 
> port as 6048.  When I run the mud, 'netstat -na' shows a listening 
> server on 6047 (tcp), but nowhere can I find anything listening on 6048.
> 
> So, I downloaded and installed vanilla DGD.  Upon starting it up, there 
> is indeed both 6047 and 6048.  Neither ANSI nor Comment patches are 
> going to kill connection stuff, so it has to be the network patch.
> 
> Does anyone have any idea what the network patch is doing to kill binary 
> connections?  And if so, what can I do about it?

AFAIK, there is no binary port with the networking patches.  Instead, only
the primary telnet port is opened by default and all other ports must
be opened with the open_port() kfun that the networking patches add.

-- 
Greg Lewis                          Email   : 
Eyes Beyond                         Web     : http://www.eyesbeyond.com
Information Technology              FreeBSD : 

From: John Ruiz
Subject: [DGD] sizeof(static string *buffer)
Date: Sat, 11 Sep 2004 00:13:49 -0400

Hi All,

I'm trying to get the network patch going on DGD 1.2p4 on SuSE 9.1.

The daemon compiles just fine, but I get a runtime error (that you can
see below) for the kfun sizeof(),  Now, I thought that a static string
array counted as an array just as much as mixed* did.  This is
apparently wrong.  Can someone confirm this?  And if so, how can I get
the size of a static string*?

Please see pertinent things below, and thanks for any help or advice you
could offer.

John Ruiz

-----=[ DGD Error ]=-----
Sep 10 23:51:58 ** DGD 1.2p4
Sep 10 23:51:58 ** Initializing...
Sep 10 23:51:58 ** IMUD3 Daemon started.
Sep 10 23:51:58 ** IMUD3 port opened (198.144.203.194), registering with
server.
Sep 10 23:51:58 ** Initialization complete.

Sep 10 23:51:58 ** Bad argument 1 for kfun sizeof
 336 message_done      /usr/System/sys/imud3d

... other known things ...

Sep 10 23:52:58 ** System halted.

-----=[ 336 message_done /usr/System/sys/imud3d ]=-----
334: void message_done()
335: {
336:     if(sizeof(buffer))
337:     {
338:         sendPacket(buffer[0]);
339:         buffer -= ({ buffer[0] });
340:     }
341: }

-----=[ buffer's declaration at top of file ]=-----
static string *buffer;         // packets to be sent

From: Thomas Edward Mieczkowski
Subject: Re: [DGD] sizeof(static string *buffer)
Date: Sat, 11 Sep 2004 01:00:32 -0400

i'm a relative DGD newbie (fairly expert at LPC however), but it
appears as though buffer is not initialized for some reason, which
would cause legacy LPC sizeof() to error based on the fact it is 0
(LPC's way of noting null).  I believe in DGD it works the same way. 
So, you may want to replace

if(sizeof(buffer))

with

if(buffer && sizeof(buffer))

or determine why buffer is not being initialized.

Hope that helps.

Tom

On Sat, 11 Sep 2004 00:13:49 -0400, John Ruiz wrote:
> Hi All,
> 
> I'm trying to get the network patch going on DGD 1.2p4 on SuSE 9.1.
> 
> The daemon compiles just fine, but I get a runtime error (that you can
> see below) for the kfun sizeof(),  Now, I thought that a static string
> array counted as an array just as much as mixed* did.  This is
> apparently wrong.  Can someone confirm this?  And if so, how can I get
> the size of a static string*?
> 
> Please see pertinent things below, and thanks for any help or advice you
> could offer.
> 
> John Ruiz
> 
> -----=[ DGD Error ]=-----
> Sep 10 23:51:58 ** DGD 1.2p4
> Sep 10 23:51:58 ** Initializing...
> Sep 10 23:51:58 ** IMUD3 Daemon started.
> Sep 10 23:51:58 ** IMUD3 port opened (198.144.203.194), registering with
> server.
> Sep 10 23:51:58 ** Initialization complete.
> 
> Sep 10 23:51:58 ** Bad argument 1 for kfun sizeof
>  336 message_done      /usr/System/sys/imud3d
> 
> ... other known things ...
> 
> Sep 10 23:52:58 ** System halted.
> 
> -----=[ 336 message_done /usr/System/sys/imud3d ]=-----
> 334: void message_done()
> 335: {
> 336:     if(sizeof(buffer))
> 337:     {
> 338:         sendPacket(buffer[0]);
> 339:         buffer -= ({ buffer[0] });
> 340:     }
> 341: }
> 
> -----=[ buffer's declaration at top of file ]=-----
> static string *buffer;         // packets to be sent