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