예제 #1
0
 def on_startup(self):
     NetworkSocket.server(NetworkSocket.SOCK_TCP, ('127.0.0.1', 65000)).register(self.on_new_connection, None, None, None, None)
예제 #2
0
 def on_startup(self):
     self.serverSocket = NetworkSocket.server(NetworkSocket.SOCK_TCP, ('127.0.0.1', 65000))
     self.serverSocket.register(self.on_readable, None, None, None, None)
예제 #3
0
 def on_startup(self):
     self.sock = NetworkSocket.client(NetworkSocket.SOCK_TCP, ('www.yahoo.com', 80))
     self.sock.register(self.on_readable, None, self.on_connected, self.on_end, self.on_end)
예제 #4
0
 def on_startup(self):
     NetworkSocket.server(NetworkSocket.SOCK_TCP,
                          ('127.0.0.1', 65000)).register(
                              self.on_new_connection, None, None, None,
                              None)
예제 #5
0
 def on_startup(self):
     self.serverSocket = NetworkSocket.server(NetworkSocket.SOCK_TCP,
                                              ('127.0.0.1', 65000))
     self.serverSocket.register(self.on_readable, None, None, None, None)
예제 #6
0
 def on_startup(self):
     self.sock = NetworkSocket.client(NetworkSocket.SOCK_TCP,
                                      ('www.yahoo.com', 80))
     self.sock.register(self.on_readable, None, self.on_connected,
                        self.on_end, self.on_end)