Client
import socket
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
host = "127.0.0.1"
port = 1290
s.connect((host, port))
message = raw_input("=>")
while message != "q":
s.send(message.encode())
message = raw_input("=>")
s.close()
Server
import socket
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
host = "127.0.0.1"
port = 1290
s.bind((host, port))
s.listen(1)
c, addr = s.accept()
print("Connessione da ", addr)
while True:
data = c.recv(1024).decode()
if not data:
break
print(str(data))
c.close()
Misure di riferimento per l'uomo in base all'altezza Ecco i valori in centimetri del polso…
La differenza principale sta nel livello tecnologico: Python e PHP sono linguaggi di programmazione, mentre…
[crayon-6b14bd1290b5c841067451/] https://www.pasqualeclarizio.it/progetti/basePhp/crud/start_prog/home20.php
[crayon-6b14bd1290d0a487373864/] https://www.pasqualeclarizio.it/progetti/basePhp/crud/start_prog/home19.php api_dati.php https://www.pasqualeclarizio.it/progetti/basePhp/crud/start_prog/api_dati.php
[crayon-6b14bd1290eab044697353/] https://www.pasqualeclarizio.it/progetti/basePhp/crud/start_prog/home19.php ho solo creato il file: api_dati.php, ma il file è vuoto. Chiaramente nel…
[crayon-6b14bd1291053029241875/] https://www.pasqualeclarizio.it/progetti/basePhp/crud/start_prog/home16.php [crayon-6b14bd129105c433854791/] https://www.pasqualeclarizio.it/progetti/basePhp/crud/start_prog/home17.php Fino ad ora stiamo solo sviluppando la parte Client