Kaydet (Commit) 08c72187 authored tarafından Georg Brandl's avatar Georg Brandl

#2752: wrong meaning of '' for socket host.

üst 83343309
...@@ -808,7 +808,7 @@ The first two examples support IPv4 only. :: ...@@ -808,7 +808,7 @@ The first two examples support IPv4 only. ::
# Echo server program # Echo server program
import socket import socket
HOST = '' # Symbolic name meaning the local host HOST = '' # Symbolic name meaning all available interfaces
PORT = 50007 # Arbitrary non-privileged port PORT = 50007 # Arbitrary non-privileged port
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.bind((HOST, PORT)) s.bind((HOST, PORT))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment