input/output through socket or COM port

Chris Liechti cliechti at gmx.net
Sun Apr 28 11:56:40 EDT 2002


Jive Dadson <jdadson at ix.netcom.com> wrote in 
news:3CCB557C.5BDB495E at ix.netcom.com:

> Thanks a lot.  I snarfed the pserial zip file.  Do you know a similar
> thing for
> a TCP/IP host?

s = socket.socket(...)
s.connect(...)
fi = s.makefile()

-- 
Chris <cliechti at gmx.net>




More information about the Python-list mailing list