new work flow 1

This commit is contained in:
2016-09-30 17:54:31 -04:00
parent 2d027afa29
commit d91df030be
4 changed files with 31 additions and 16 deletions

9
random_port.py Executable file
View File

@ -0,0 +1,9 @@
#!/usr/bin/env python3
import socket
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.bind(('', 0))
addr = s.getsockname()
print (addr[1])
s.close()
exit(0)