On Monday, 1 December 2003 23:59, Seamus Thomas Carroll wrote:
> @[EMAIL PROTECTED] (Swearing),
>
> Do you know of any websites that I can read the will improve my
> understaning of sockets?  At my current level of understanding I am having
> trouble making sense of the pegasus network library and how it is being
> used in httpd.cxx and props.cxx due to the little documentation on the
> plib website.
>
> Can someone explain why SGSocket restricts the number of clients to one?
> Would it not make more sense to allow up to some maximum number of
> clients?
>
> Seamus

Here's a good place to start if you want to know how *nix sockets work.
http://docs.sun.com/db/doc/802-5886/6i9k5sgsk?a=view

All the other libraries you see are just wrappers around the basic socket 
routines.

I'm not sure what the pegasus network library supports but if you want to 
allow multiple connections on vanilla *nix sockets you can use one of the 
following approaches :
- select (easy approach)
- multithreading (dangerous/tricky approach - mutexes, semaphores, race 
conditions, deadlock conditions ...)

Paul


_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel

Reply via email to