Exemplo n.º 1
0
 public Server(CallResponseQueue queue)
 {
     this.queue = queue;
       this.tcpListener = new TcpListener(IPAddress.Loopback, 3000);
       this.listenThread = new Thread(new ThreadStart(ListenForClients));
       this.listenThread.Start();
 }
Exemplo n.º 2
0
    void Start()
    {
        Debug.Log("Listening for clients...");

        queue = new CallResponseQueue();
        server = new Server(queue);
    }
Exemplo n.º 3
0
    void Start()
    {
        Debug.Log("Listening for clients...");

        queue  = new CallResponseQueue();
        server = new Server(queue);
    }
Exemplo n.º 4
0
 void OnEnable()
 {
     //Debug.Log ("Called OnEnable - StartServer");
     queue = new CallResponseQueue();
     server = new Server(queue);
     //Debug.Log ("New Server's application running: " + server.applicationRunning.ToString());
 }
Exemplo n.º 5
0
 void OnEnable()
 {
     //Debug.Log ("Called OnEnable - StartServer");
     queue  = new CallResponseQueue();
     server = new Server(queue);
     //Debug.Log ("New Server's application running: " + server.applicationRunning.ToString());
 }
Exemplo n.º 6
0
 public Server(CallResponseQueue queue)
 {
     this.queue        = queue;
     this.tcpListener  = new TcpListener(IPAddress.Loopback, 3000);
     this.listenThread = new Thread(new ThreadStart(ListenForClients));
     this.listenThread.Start();
 }
Exemplo n.º 7
0
    public Server(CallResponseQueue queue)
    {
        //Debug.Log ("In constructor for Server, setting applicationRunning to true");

        //Debug.Log ("Killing any existing Servers...currInstance = " + currInstance);
        if (currInstance != null)
        {
            currInstance.tcpListener.Stop(); // Kill the old listener so it doesn't interfere with new spells
        }
        currInstance = this;
        applicationRunning = true;
          this.queue = queue;

        if (this.tcpListener != null)
        {
            //Debug.Log ("Killing accept socket");
            this.tcpListener.Stop();
        }
          this.tcpListener = new TcpListener(IPAddress.Loopback, 3000);
          this.listenThread = new Thread(new ThreadStart(ListenForClients));
          this.listenThread.IsBackground = true;
          this.listenThread.Start();
    }
Exemplo n.º 8
0
    public Server(CallResponseQueue queue)
    {
        //Debug.Log ("In constructor for Server, setting applicationRunning to true");

        //Debug.Log ("Killing any existing Servers...currInstance = " + currInstance);
        if (currInstance != null)
        {
            currInstance.tcpListener.Stop();             // Kill the old listener so it doesn't interfere with new spells
        }
        currInstance       = this;
        applicationRunning = true;
        this.queue         = queue;

        if (this.tcpListener != null)
        {
            //Debug.Log ("Killing accept socket");
            this.tcpListener.Stop();
        }
        this.tcpListener  = new TcpListener(IPAddress.Loopback, 3000);
        this.listenThread = new Thread(new ThreadStart(ListenForClients));
        this.listenThread.IsBackground = true;
        this.listenThread.Start();
    }
Exemplo n.º 9
0
 public void setParent(CallResponseQueue crq)
 {
     parent = crq;
 }
Exemplo n.º 10
0
 public void setParent(CallResponseQueue crq)
 {
     parent = crq;
 }