cdb865f1
lwadbled
feat(Python): Ajo...
|
1
2
3
4
5
6
7
8
|
import socket
if __name__ == '__main__':
clientSocket = socket.socket(socket.AF_INET, socket.SOCK_DGRAM);
data = "Hello Server!";
clientSocket.sendto(data.encode(),("172.26.145.62",9090));
dataFromServer,sourceAddress = clientSocket.recvfrom(1024);
print(dataFromServer.decode());
|