Esempio n. 1
0
    public void threadFunc()
    {
        String msg;

        tcpClientHandler.Connect(HOST, PORT);
        msgWasInit = tcpClientHandler.Write("mark_target");
        while (msgWasInit)
        {
            try
            {
                msg = tcpClientHandler.Read();
            }
            catch (Exception e)
            {
                return;
            }
            if (msg != null)
            {
                Debug.Log(msg);
            }
        }
    }