public static TAClientListener startListenerThread(TAServer server)
        {
            TAClientListener l = new TAClientListener(server);

            new Thread(l.listen).Start();
            return(l);
        }
Beispiel #2
0
        public static TAClient createClient(TAServer server, TcpClient clientConnection)
        {
            TAClient c = new TAClient(server, clientConnection);

            WebsocketUtility.websocketHandshake(clientConnection);
            new Thread(c.clientListenCycle).Start();
            return(c);
        }
 private TAClientListener(TAServer server)
 {
     this.server = server;
     TAServerLog.log("Listening for clients...", LogType.SERVER_ACTION);
     clientListener = new TcpListener(WebsocketUtility.getLocalIP(), TAServer.CLIENT_LISTEN_PORT);
     clientListener.Start();
     listening = true;
 }
Beispiel #4
0
 private TAClient(TAServer server, TcpClient clientConnection)
 {
     playerCharacter       = new TAPlayer(server, server.world.startScene, this);
     clientAlive           = true;
     this.server           = server;
     this.clientConnection = clientConnection;
     clientStream          = clientConnection.GetStream();
     clientID = ClientIDManager.getNextID();
     //locationUpdate();
 }
Beispiel #5
0
 static void Main(string[] args)
 {
     Server.TAServer server = new Server.TAServer();
 }
 public TAServerInterface(TAServer server)
 {
     this.server = server;
     new Thread(rcvInput).Start();
     addInputOptions();
 }