mirror of https://github.com/python/cpython
Choose a port that doesn't conmflict with real radio
This commit is contained in:
parent
e266344faf
commit
a8413b2ef0
|
@ -12,7 +12,7 @@
|
||||||
import sys, al
|
import sys, al
|
||||||
from socket import *
|
from socket import *
|
||||||
|
|
||||||
port = 54321
|
port = 5555
|
||||||
if sys.argv[1:]: port = eval(sys.argv[1])
|
if sys.argv[1:]: port = eval(sys.argv[1])
|
||||||
|
|
||||||
s = socket(AF_INET, SOCK_DGRAM)
|
s = socket(AF_INET, SOCK_DGRAM)
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
import sys, al
|
import sys, al
|
||||||
from socket import *
|
from socket import *
|
||||||
|
|
||||||
port = 54321
|
port = 5555
|
||||||
if sys.argv[1:]: port = eval(sys.argv[1])
|
if sys.argv[1:]: port = eval(sys.argv[1])
|
||||||
|
|
||||||
s = socket(AF_INET, SOCK_DGRAM)
|
s = socket(AF_INET, SOCK_DGRAM)
|
||||||
|
|
|
@ -12,7 +12,7 @@ from socket import *
|
||||||
|
|
||||||
host = sys.argv[1]
|
host = sys.argv[1]
|
||||||
|
|
||||||
port = 54321
|
port = 5555
|
||||||
if sys.argv[2:]: port = eval(sys.argv[1])
|
if sys.argv[2:]: port = eval(sys.argv[1])
|
||||||
|
|
||||||
s = socket(AF_INET, SOCK_DGRAM)
|
s = socket(AF_INET, SOCK_DGRAM)
|
||||||
|
|
Loading…
Reference in New Issue