Python: Echo Server
Contents 1 Simple Echo Server 2 Sebuah Echo Client Sederhana 3 Alternatif Test menggunakan nc 4 Referensi Simple Echo Server Sebuah simple echo server (echoserver-simple.py): #!/usr/bin/env python import socket host = port = 50000 backlog = 5 size = 1024 s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.bind((host,port)) s.listen(backlog) while 1: client, address = s.accept() data =
| Penerbit | Taratsa |
|---|---|
| Tahun | 2014-05-04 |
| Bahasa | ind |
| Pengenal | bookid: urn:uuid:9b9d519f-24b5-552b-9a40-fb27d75300c6 |