Python: Transfer File
Contents 1 Server 2 Client 3 File mytext.txt 4 Output 5 Referensi 6 Pranala Menarik Server # server.py import socket # Import socket module port = 60000 # Reserve a port for your service. s = socket.socket() # Create a socket object host = socket.gethostname() # Get local machine name s.bind((host, port)) # Bind to the port s.listen(5) # Now wait for client connection. print 'Server
| Penerbit | Taratsa |
|---|---|
| Tahun | 2015-07-27 |
| Bahasa | ind |
| Pengenal | bookid: urn:uuid:17fa9022-af77-5673-a568-e0580d6a8995 |