Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- alex@alex:~$ python
- Python 2.7.1+ (r271:86832, Apr 11 2011, 18:13:53)
- [GCC 4.5.2] on linux2
- Type "help", "copyright", "credits" or "license" for more information.
- >>> import socket
- >>> s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
- >>> s.bind((socket.gethostname(), 6667))
- >>> s.listen()
- >>> s.listen(1)
- >>>
Advertisement
Add Comment
Please, Sign In to add comment