def statement(self, p): Server.listen(self, self.sSocket)
def statement(self, p): self.tSocket, address = Server.accept(self, self.sSocket) return self.tSocket, address
def statement(self, p): 'bind : BIND' Server.bind(self, self.sSocket)
def statement(self, p): Server.close(self, self.sSocket)
def statement(self, p): Server.send(self, self.tSocket) Client.receive(self, self.cSocket)
def statement(self, p): self.sSocket = Server.create_socket(self) self.gCommands[p.SERVER] = self.sSocket return self.sSocket
def __init__(self): self.gCommands = {} self.cSocket = None self.sSocket = None self.tSocket = Server.create_socket(self)