Ejemplo n.º 1
0
    // Use this for initialization
    void Start()
    {
        if (Application.isEditor)
        {
            conf = "C:/Users/VR_Demo/Desktop/VR_DevelopmentIDE/VR_DevelopmentIDE/VR_DL/Package/config.ini";
        }
        else
        {
            conf = Application.dataPath + "/config.ini";
        }
        SetConfValues();

        /*string localIP;
         * using (Socket socket = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, 0))
         * {
         *  socket.Connect("8.8.8.8", 50051);
         *  IPEndPoint endPoint = socket.LocalEndPoint as IPEndPoint;
         *  localIP = endPoint.Address.ToString();
         * }*/

        //string localIP = "172.18.227.36";

        string localIP = "198.215.56.140"; //"localhost";

        channel = new Channel(localIP + ":50051", ChannelCredentials.Insecure);

        Debug.Log("Created channel.");
        client = new Evaluator.Evaluator.EvaluatorClient(channel);
        Debug.Log("Created client.");

        manager      = FindObjectOfType <CLayerManager>();
        modelHandler = FindObjectOfType <CModelHandler>();
    }
Ejemplo n.º 2
0
    // Use this for initialization
    void Start()
    {
        channel = new Channel("172.18.224.168:50051", ChannelCredentials.Insecure);
        Debug.Log("Created channel.");
        client = new Evaluator.Evaluator.EvaluatorClient(channel);
        Debug.Log("Created client.");

        manager = FindObjectOfType <LayerManger>();
    }