Anonymous user
Sockets: Difference between revisions
→{{header|Python}}: Needs to be imported or referenced in its namespace
m (omit TI-BASIC) |
(→{{header|Python}}: Needs to be imported or referenced in its namespace) |
||
Line 343:
=={{header|Python}}==
<lang python>import socket
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
sock.connect(("localhost", 256))
sock.sendall("hello socket world")
|