Created
November 13, 2017 17:39
-
-
Save Kwpolska/d6a641144eace2ce418b631746ac0394 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import socket | |
s1 = socket.socket() | |
s2 = socket.socket() | |
s1.bind(('0.0.0.0', 1234)) | |
s2.bind(('0.0.0.0', 1234)) | |
# Traceback (most recent call last): | |
# File "socket_in_use.py", line 4, in <module> | |
# s1.bind(('0.0.0.0', 1234)) | |
# OSError: [Errno 48] Address already in use |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment