Exemplo n.º 1
0
 def statement(self, p):
     Server.listen(self, self.sSocket)
Exemplo n.º 2
0
 def statement(self, p):
     self.tSocket, address = Server.accept(self, self.sSocket)
     return self.tSocket, address
Exemplo n.º 3
0
 def statement(self, p):
     'bind : BIND'
     Server.bind(self, self.sSocket)
Exemplo n.º 4
0
 def statement(self, p):
     Server.close(self, self.sSocket)
Exemplo n.º 5
0
 def statement(self, p):
     Server.send(self, self.tSocket)
     Client.receive(self, self.cSocket)
Exemplo n.º 6
0
 def statement(self, p):
     self.sSocket = Server.create_socket(self)
     self.gCommands[p.SERVER] = self.sSocket
     return self.sSocket
Exemplo n.º 7
0
 def __init__(self):
     self.gCommands = {}
     self.cSocket = None
     self.sSocket = None
     self.tSocket = Server.create_socket(self)