Re: relatively simple hack to lookup login-names

From: Wout Mertens (Wout.Mertens@rug.ac.be)
Date: 12/18/95


On Sun, 17 Dec 1995, Pink Floyd wrote:

>      idname = ident_id (desc, 5);	/* this attempts to get the username */
> 
> Just curious, will this statement bring the mud to a halt until it has 
> connected to the remote host and acquired the username?  
> If so, this is another example of a great way to apply the generic events
> queue, in combination with a fork'd process, to prevent that lag. (Just fork
> the ident_id thing and have the queue check every, say, 1 second, until it
> gets a return value of some kind.  Meanwhile, the game proceeds uninterrupted!)

Yes, but how do you get data from your forked child? The only things I 
see are shared memory, via sockets (child binds a port... seems rather 
silly tho) and files. So how do you do it?

And how do you use shared mem?

Gekke Eekhoorn of BUG.



This archive was generated by hypermail 2b30 : 12/07/00 PST