socket programming

Chris Angelico rosuav at gmail.com
Sat May 4 06:00:39 EDT 2013


On Sat, May 4, 2013 at 7:37 PM, Irmen de Jong <irmen.NOSPAM at xs4all.nl> wrote:
> Bottom line:
> Socket programming on this level is hugely complicated. It doesn't seem too bad if you
> start of with these simple example programs, but that's false hope. If at all possible,
> avoid direct socket programming, and use a high-level protocol or library instead
> (ftp/http/some IPC library/Twisted). Let them deal with the complexity of the socket layer.
>

It's not quite as bad as this paragraph seems to imply. Sure, there
are a million things that can go wrong, but once you master that, it's
the very easiest way to do cross-language, cross-platform,
cross-computer communication. Practically EVERY language can do basic
TCP sockets, but not every language has higher level bindings.

ChrisA



More information about the Python-list mailing list