I'm trying to write a little script to send data to another machine, and just read any message I get in return.
so I do something like:
import socket
import select
s = socket.socket(AF_INET, SOCK_STREAM, IPPROTO_TCP)
s.connect((<host>, <port>))
s.send('sometext')
[input...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.