Advertisement
Guest User

Untitled

a guest
Oct 17th, 2019
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.31 KB | None | 0 0
  1. #!/usr/bin/env python3
  2. import socket
  3. HOST = '127.0.0.1'  # The server's hostname or IP address
  4. PORT = 65432        # The port used by the server
  5. with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s:
  6.     s.connect((HOST, PORT))
  7.     s.send(b'2,3')
  8.     data = s.recv(1024)
  9. print('Received', repr(data))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement