Example #1
0
        static void Main(string[] args)
        {
            // Setup adb port forward
            // TODO: Currently hardcoded
            ShellHelper.RunProcessAndGetOutput(@"adb", @"forward tcp:1244 tcp:1244");

            var shaderCompilerServer = new ShaderCompilerHost();

            // Wait and process messages
            // TODO: Rearrange how thread/async is done
            // TODO: We should support both client and server mode for socket connection
            while (true)
            {
                shaderCompilerServer.TryConnect(1244).Wait();
            }
        }
Example #2
0
        static void Main(string[] args)
        {
            // Setup adb port forward
            // TODO: Currently hardcoded
            ShellHelper.RunProcessAndGetOutput(@"adb", @"forward tcp:1244 tcp:1244");

            var shaderCompilerServer = new ShaderCompilerHost();

            // Wait and process messages
            // TODO: Rearrange how thread/async is done
            // TODO: We should support both client and server mode for socket connection
            while (true)
            {
                shaderCompilerServer.TryConnect(1244).Wait();
            }
        }