network programming: how does s.accept() work?

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Tue Feb 26 21:49:41 EST 2008


En Tue, 26 Feb 2008 07:53:24 -0200, 7stud <bbxx789_05ss at yahoo.com>  
escribió:

> ---
> When you surf the Web, say to http://www.google.com, your Web browser
> is a client. The program you contact at Google is a server. When a
> server is run, it sets up business at a certain port, say 80 in the
> Web case. It then waits for clients to contact it. When a client does
> so, the server will usually assign a new port, say 56399, specifically
> for communication with that client, and then resume watching port 80
> for new requests.
> ---
> http://heather.cs.ucdavis.edu/~matloff/Python/PyNet.pdf

You should *not* trust all you find on the Net...

-- 
Gabriel Genellina




More information about the Python-list mailing list