Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python3
- import socket
- HOST = '127.0.0.1' # The server's hostname or IP address
- PORT = 65432 # The port used by the server
- with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s:
- s.connect((HOST, PORT))
- s.send(b'2,3')
- data = s.recv(1024)
- print('Received', repr(data))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement