Advertisement
Korotkodul

clientB_last

Sep 24th, 2022
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.23 KB | None | 0 0
  1. import socket
  2.  
  3. sock = socket.socket()
  4. sock.connect(('192.168.1.171',9970))
  5.  
  6.  
  7. message_from_A = sock.recv(1024)
  8. message_from_A = message_from_A.decode('utf-8')
  9. print("Message from A")
  10. print(message_from_A)
  11.  
  12.  
  13.  
  14. sock.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement