I'm writing a simple server allowing me and my friends to send information to each other.
Currently I've got the client down easy enough, it's all set up and I can communicate with servers. The problem is I can't get the server to work for some reason, I use working examples offline and it just refuses to function. Here's the code:
import socket
HOST = ''
PORT = 8888
SLOTS = 10
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
try:
s.bind((HOST, PORT))
except:
print "Failure To BInd"
s.listen(SLOTS)
conn, addr = s.accept()
I get an error saying that in the s.listen(SLOTS) line, an argument wasn't provided.
Any ideas what is happening?