httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Williams <>
Subject Re: UDP support?
Date Wed, 10 Nov 1999 20:33:09 GMT
Both views are correct.  One may open a connected udp socket which
allows a process to communicate with exactly one peer. (The
application may chose the udp port number, or allow the kernel to
chose an ephermal one.)

There are also situations where a server needs to open a well-known
port and listen for requests from multiple clients.  In this scenerio
the server may want to have a single process open the socket once.
So that retransmitted requests or multiple PDUs of a single
transaction all get handled by the same process, instead of randomly
be received by different processes.

My comment about the apache process model was related to using
unconnected udp sockets.   


On Wed, 10 Nov 1999, Ryan Bloom wrote:

> On Wed, 10 Nov 1999, Dean Gaudet wrote:
> > i'm not sure what more i can say except that udp sockets aren't connected.
> > 
> > try it.
> I DID it two years ago.  It was my senior project when I graduated from
> college.  I KNOW it can be done, because I have done it.
> > open up the same udp port in more than one process, and start sending
> > packets.  notice how it's random which process get which packets.  (unless
> > you broadcast the packets, in which case all the sockets get all the
> > packets).
> I think we modified two functions in Apache and two functions in Lynx to
> make it work.  If you would like to see it, I am sure I can get the diffs
> from one of the guys I worked with.  I lost my copies when I lost my last
> hard drive.  :-)
> Ryan
> _______________________________________________________________________
> Ryan Bloom
> 4205 S Miami Blvd	
> RTP, NC 27709		It's a beautiful sight to see good dancers 
> 			doing simple steps.  It's a painful sight to
> 			see beginners doing complicated patterns.	

View raw message