[Python-3000] new io (pep 3116)

Daniel Stutzbach daniel at stutzbachenterprises.com
Mon May 7 15:32:06 CEST 2007


On 5/7/07, tomer filiba <tomerfiliba at gmail.com> wrote:
> for instance, there's no point in UDP sockets having listen(), or send()
> or getpeername() -- with UDP you only ever use sendto and recvfrom.
> on the other hand,

Actually, you can connect() UDP sockets, and then you can use send(),
recv(), and getpeername().

> TCP sockets make no use of sendto(). and even with
> TCP sockets, listeners never use send() or recv(), while connected
> sockets never use listen() or connect().

Agreed.

-- 
Daniel Stutzbach, Ph.D.             President, Stutzbach Enterprises LLC


More information about the Python-3000 mailing list