[ale] OT: C not C++ Question

cfowler cfowler at outpostsentinel.com
Mon Dec 30 09:12:08 EST 2002


On Mon, 2002-12-30 at 09:00, Chuck Huber wrote:
>
> 
> Chris,  How much more work are you going to put into being lazy?
> 
> Enjoy,
>     - Chuck

Funny.  I just hate rewriting code over and over and over again. I will
tell you this.  I needed to test our SNPP feature and I cranked out a
SNPPD pseudo server using this code really fast.  All it does is read
and respond correctly via command but it came about really fast.

Socket *s = Socket_new("0.0.0.0", 444);
Socket *cs;
Socket_bind(s, 20);
while(true) {
 cs = Socket_accept(s);
 talkToClient(cs);
}

Now that was fast!

_______________________________________________
Ale mailing list
Ale at ale.org
http://www.ale.org/mailman/listinfo/ale






More information about the Ale mailing list