Oct-17-2016, 09:41 PM
Yes, it is indeed line 7...and 8 and 9 :)
it should look something like this:
it should look something like this:
import socket # for sockets import sys # for exit try: # create an AF_INET, STREAM socket (TCP) s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) except socket.error as msg: print('Failed to create socket. Error code: {}'.format(str(msg))) sys.exit() print('Socket Created')
If it ain't broke, I just haven't gotten to it yet.
OS: Windows 10, openSuse 42.3, freeBSD 11, Raspian "Stretch"
Python 3.6.5, IDE: PyCharm 2018 Community Edition
OS: Windows 10, openSuse 42.3, freeBSD 11, Raspian "Stretch"
Python 3.6.5, IDE: PyCharm 2018 Community Edition