Re: OSError: [WinError 10022] An invalid argument was supplied in udp python file

2015-01-10 Thread Kev Dwyer
contro opinion wrote: > When i test an udp.py file on server and client in python34. > > > #!/usr/bin/env python > import socket, sys > s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) > MAX = 65535 > PORT = 1060 > if sys.argv[1:] == ['server']: > s.bind(('127

OSError: [WinError 10022] An invalid argument was supplied in udp python file

2015-01-10 Thread contro opinion
When i test an udp.py file on server and client in python34. #!/usr/bin/env python import socket, sys s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) MAX = 65535 PORT = 1060 if sys.argv[1:] == ['server']: s.bind(('127.0.0.1', PORT)) print('Listening at