[newbie] trying socket as a replacement for nc
rosuav at gmail.com
Sun Dec 15 23:48:23 CET 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.
More information about the Python-list