[newbie] trying socket as a replacement for nc

Chris Angelico rosuav at gmail.com
Sun Dec 15 17:48:23 EST 2013


On Mon, Dec 16, 2013 at 9:42 AM, Grant Edwards <invalid at invalid.invalid> wrote:
> Good point -- I meant send().  I keep forgetting that the libc socket
> write() operation is missing in Python and only the send() call has
> been made visible. In C write() and send() are effectively the same
> thing (the parameters are arranged a little differently, but they
> behave identically otherwise).

Mostly - send() lets you set options, write() is equivalent to send()
with no options set. But other than that, they're identical, as stated
in man 2 send.

ChrisA



More information about the Python-list mailing list