Posts by Leonardo Burle • 33 points
2 posts
-
1
votes0
answers327
viewsQ: How to send an image correctly via Socket in Python
I am trying to send a picture of the dir directory to another client of my network. The sockets are working properly, the image arrives at the destination and is saved, but when I try to open it I…
-
2
votes1
answer5801
viewsQ: How to Create a communication between two clients via server using socket
import socket from threading import Thread def client(h, p): s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) # IPv4,tipo de socket s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) while…