├── .gitignore ├── LICENSE ├── README.md └── Unity-VNC-Client ├── Assembly-CSharp-Editor-vs.csproj ├── Assembly-CSharp-Editor.csproj ├── Assembly-CSharp-firstpass-vs.csproj ├── Assembly-CSharp-firstpass.csproj ├── Assembly-CSharp-vs.csproj ├── Assembly-CSharp.csproj ├── Assets ├── Editor.meta ├── Editor │ ├── EditorIME.cs │ └── EditorIME.cs.meta ├── OVR.meta ├── OVR │ ├── Editor.meta │ ├── Editor │ │ ├── OVRBuild.cs │ │ ├── OVRBuild.cs.meta │ │ ├── OVRGameView.cs │ │ ├── OVRGameView.cs.meta │ │ ├── OVRPrefabs.cs │ │ ├── OVRPrefabs.cs.meta │ │ ├── OVRShimLoader.cs │ │ ├── OVRShimLoader.cs.meta │ │ ├── OculusUnityPatcher_32.exe │ │ ├── OculusUnityPatcher_32.exe.meta │ │ ├── OculusUnityPatcher_64.exe │ │ └── OculusUnityPatcher_64.exe.meta │ ├── Fonts.meta │ ├── Materials.meta │ ├── Materials │ │ ├── CubeMaterial.mat │ │ ├── CubeMaterial.mat.meta │ │ ├── GUIHUD.mat │ │ ├── GUIHUD.mat.meta │ │ ├── MagHUDRef.mat │ │ ├── MagHUDRef.mat.meta │ │ ├── MagHUDTracked.mat │ │ ├── MagHUDTracked.mat.meta │ │ ├── TextShader3D.mat │ │ └── TextShader3D.mat.meta │ ├── Prefabs.meta │ ├── Prefabs │ │ ├── OVRCameraRig.prefab │ │ ├── OVRCameraRig.prefab.meta │ │ ├── OVRPlayerController.prefab │ │ └── OVRPlayerController.prefab.meta │ ├── Resources.meta │ ├── Resources │ │ ├── DINPro-Bold.otf │ │ ├── DINPro-Bold.otf.meta │ │ ├── OVRGuiObjectMain.prefab │ │ ├── OVRGuiObjectMain.prefab.meta │ │ ├── OVRVisionGuideMessage.prefab │ │ └── OVRVisionGuideMessage.prefab.meta │ ├── Scenes.meta │ ├── Scenes │ │ ├── Cubes.unity │ │ ├── Cubes.unity.meta │ │ ├── MultiCamera.unity │ │ └── MultiCamera.unity.meta │ ├── Scripts.meta │ ├── Scripts │ │ ├── OVRCameraRig.cs │ │ ├── OVRCameraRig.cs.meta │ │ ├── OVRCommon.cs │ │ ├── OVRCommon.cs.meta │ │ ├── OVRDisplay.cs │ │ ├── OVRDisplay.cs.meta │ │ ├── OVRManager.cs │ │ ├── OVRManager.cs.meta │ │ ├── OVRPluginEvent.cs │ │ ├── OVRPluginEvent.cs.meta │ │ ├── OVRTracker.cs │ │ ├── OVRTracker.cs.meta │ │ ├── OvrCapi.cs │ │ ├── OvrCapi.cs.meta │ │ ├── Util.meta │ │ └── Util │ │ │ ├── OVRCrosshair.cs │ │ │ ├── OVRCrosshair.cs.meta │ │ │ ├── OVRGUI.cs │ │ │ ├── OVRGUI.cs.meta │ │ │ ├── OVRGamepadController.cs │ │ │ ├── OVRGamepadController.cs.meta │ │ │ ├── OVRGridCube.cs │ │ │ ├── OVRGridCube.cs.meta │ │ │ ├── OVRMainMenu.cs │ │ │ ├── OVRMainMenu.cs.meta │ │ │ ├── OVRPlayerController.cs │ │ │ ├── OVRPlayerController.cs.meta │ │ │ ├── OVRScreenFade.cs │ │ │ ├── OVRScreenFade.cs.meta │ │ │ ├── OVRUGUI.cs │ │ │ ├── OVRUGUI.cs.meta │ │ │ ├── OVRVisionGuide.cs │ │ │ └── OVRVisionGuide.cs.meta │ ├── Shaders.meta │ ├── Shaders │ │ ├── OVRGUIShader.shader │ │ ├── OVRGUIShader.shader.meta │ │ ├── TextShader3D.shader │ │ └── TextShader3D.shader.meta │ ├── Textures.meta │ └── Textures │ │ ├── Black.png │ │ ├── Black.png.meta │ │ ├── CircleCrossHair.png │ │ ├── CircleCrossHair.png.meta │ │ ├── Crosshair.tga │ │ ├── Crosshair.tga.meta │ │ ├── Icons.meta │ │ ├── Icons │ │ ├── OculusIcon.png │ │ └── OculusIcon.png.meta │ │ ├── Logos.meta │ │ ├── Logos │ │ ├── OculusLogo.png │ │ └── OculusLogo.png.meta │ │ ├── Tuscany_OculusCube.tga │ │ ├── Tuscany_OculusCube.tga.meta │ │ ├── UIBackground.psd │ │ └── UIBackground.psd.meta ├── StreamingAssets.meta ├── StreamingAssets │ └── .node │ │ ├── script.meta │ │ ├── src │ │ ├── MainServer2.js │ │ ├── VncClient.js │ │ ├── node_modules │ │ │ ├── cluster │ │ │ │ ├── .gitignore │ │ │ │ ├── .gitmodules │ │ │ │ ├── .npmignore │ │ │ │ ├── History.md │ │ │ │ ├── LICENSE │ │ │ │ ├── Makefile │ │ │ │ ├── Readme.md │ │ │ │ ├── docs │ │ │ │ │ ├── api.md │ │ │ │ │ ├── cli.md │ │ │ │ │ ├── debug.md │ │ │ │ │ ├── logger.md │ │ │ │ │ ├── pidfiles.md │ │ │ │ │ ├── reload.md │ │ │ │ │ ├── repl.md │ │ │ │ │ └── stats.md │ │ │ │ ├── examples │ │ │ │ │ ├── .gitignore │ │ │ │ │ ├── app-cluster.js │ │ │ │ │ ├── app.js │ │ │ │ │ ├── basic.js │ │ │ │ │ ├── cli-app.js │ │ │ │ │ ├── cli.js │ │ │ │ │ ├── connect.js │ │ │ │ │ ├── debug.js │ │ │ │ │ ├── envs.js │ │ │ │ │ ├── error.js │ │ │ │ │ ├── express.js │ │ │ │ │ ├── logger.js │ │ │ │ │ ├── logs │ │ │ │ │ │ └── .gitignore │ │ │ │ │ ├── pids.js │ │ │ │ │ ├── pids │ │ │ │ │ │ └── .gitignore │ │ │ │ │ ├── reload.js │ │ │ │ │ ├── repl-unix.js │ │ │ │ │ ├── repl.js │ │ │ │ │ ├── single.js │ │ │ │ │ ├── standalone.js │ │ │ │ │ ├── tcp.js │ │ │ │ │ ├── unix.js │ │ │ │ │ └── vhost.js │ │ │ │ ├── index.js │ │ │ │ ├── lib │ │ │ │ │ ├── cluster.js │ │ │ │ │ ├── master.js │ │ │ │ │ ├── mixins │ │ │ │ │ │ └── receiver.js │ │ │ │ │ ├── plugins │ │ │ │ │ │ ├── cli.js │ │ │ │ │ │ ├── debug.js │ │ │ │ │ │ ├── logger.js │ │ │ │ │ │ ├── pidfiles.js │ │ │ │ │ │ ├── reload.js │ │ │ │ │ │ ├── repl.js │ │ │ │ │ │ └── stats.js │ │ │ │ │ ├── utils.js │ │ │ │ │ └── worker.js │ │ │ │ ├── package.json │ │ │ │ └── test │ │ │ │ │ ├── common.js │ │ │ │ │ ├── logs │ │ │ │ │ ├── .gitignore │ │ │ │ │ └── nested │ │ │ │ │ │ └── .gitignore │ │ │ │ │ ├── pids │ │ │ │ │ └── .gitignore │ │ │ │ │ ├── run │ │ │ │ │ ├── support │ │ │ │ │ ├── all.js │ │ │ │ │ ├── exported.js │ │ │ │ │ ├── logs │ │ │ │ │ │ └── .gitignore │ │ │ │ │ ├── pids │ │ │ │ │ │ └── .gitignore │ │ │ │ │ ├── server.js │ │ │ │ │ └── standalone.js │ │ │ │ │ ├── test.basic.js │ │ │ │ │ ├── test.cli-status.js │ │ │ │ │ ├── test.dns.js │ │ │ │ │ ├── test.env.js │ │ │ │ │ ├── test.ephemeral.js │ │ │ │ │ ├── test.filename.js │ │ │ │ │ ├── test.logger.custom-path.js │ │ │ │ │ ├── test.logger.js │ │ │ │ │ ├── test.pidfiles.js │ │ │ │ │ ├── test.restart-env.js │ │ │ │ │ ├── test.restart.js │ │ │ │ │ ├── test.shutdown-all.js │ │ │ │ │ ├── test.shutdown.js │ │ │ │ │ ├── test.standalone-shutdown.js │ │ │ │ │ ├── test.standalone.file.js │ │ │ │ │ ├── test.standalone.js │ │ │ │ │ ├── test.standalone.restart.js │ │ │ │ │ ├── test.worker-kill.js │ │ │ │ │ ├── test.worker-quit-keep-alive.js │ │ │ │ │ ├── test.worker-quit.js │ │ │ │ │ ├── test.worker-term.js │ │ │ │ │ └── test.working-dir.js │ │ │ ├── msgpack-js │ │ │ │ ├── .travis.yml │ │ │ │ ├── README.markdown │ │ │ │ ├── msgpack.js │ │ │ │ ├── node_modules │ │ │ │ │ └── bops │ │ │ │ │ │ ├── README.md │ │ │ │ │ │ ├── copy.js │ │ │ │ │ │ ├── create.js │ │ │ │ │ │ ├── dist │ │ │ │ │ │ └── bops.js │ │ │ │ │ │ ├── from.js │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ ├── is.js │ │ │ │ │ │ ├── join.js │ │ │ │ │ │ ├── node_modules │ │ │ │ │ │ ├── base64-js │ │ │ │ │ │ │ ├── README.md │ │ │ │ │ │ │ ├── lib │ │ │ │ │ │ │ │ └── b64.js │ │ │ │ │ │ │ ├── package.json │ │ │ │ │ │ │ └── test │ │ │ │ │ │ │ │ └── runner.js │ │ │ │ │ │ └── to-utf8 │ │ │ │ │ │ │ ├── README.md │ │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ │ ├── package.json │ │ │ │ │ │ │ └── test.js │ │ │ │ │ │ ├── package.json │ │ │ │ │ │ ├── read.js │ │ │ │ │ │ ├── subarray.js │ │ │ │ │ │ ├── test │ │ │ │ │ │ ├── copy.js │ │ │ │ │ │ ├── create.js │ │ │ │ │ │ ├── from.js │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ ├── is.js │ │ │ │ │ │ ├── join.js │ │ │ │ │ │ ├── read.js │ │ │ │ │ │ ├── subarray.js │ │ │ │ │ │ ├── to.js │ │ │ │ │ │ └── write.js │ │ │ │ │ │ ├── to.js │ │ │ │ │ │ ├── typedarray │ │ │ │ │ │ ├── copy.js │ │ │ │ │ │ ├── create.js │ │ │ │ │ │ ├── from.js │ │ │ │ │ │ ├── is.js │ │ │ │ │ │ ├── join.js │ │ │ │ │ │ ├── mapped.js │ │ │ │ │ │ ├── read.js │ │ │ │ │ │ ├── subarray.js │ │ │ │ │ │ ├── to.js │ │ │ │ │ │ └── write.js │ │ │ │ │ │ └── write.js │ │ │ │ ├── package.json │ │ │ │ └── test.js │ │ │ ├── node-image-to-buffer │ │ │ │ ├── LICENSE │ │ │ │ ├── README.md │ │ │ │ ├── binding.gyp │ │ │ │ ├── build │ │ │ │ │ ├── Release │ │ │ │ │ │ ├── Win32 │ │ │ │ │ │ │ ├── NodeImageGenerator.exp │ │ │ │ │ │ │ ├── NodeImageGenerator.lib │ │ │ │ │ │ │ └── NodeImageGenerator.node │ │ │ │ │ │ └── x64 │ │ │ │ │ │ │ ├── NodeImageGenerator.exp │ │ │ │ │ │ │ ├── NodeImageGenerator.lib │ │ │ │ │ │ │ ├── NodeImageGenerator.node │ │ │ │ │ │ │ └── NodeImageGenerator.pdb │ │ │ │ │ ├── binding.sdf │ │ │ │ │ ├── binding.sln │ │ │ │ │ ├── binding.v12.suo │ │ │ │ │ ├── config.gypi │ │ │ │ │ ├── png.vcxproj │ │ │ │ │ ├── png.vcxproj.filters │ │ │ │ │ └── png.vcxproj.user │ │ │ │ ├── data.txt │ │ │ │ ├── example.js │ │ │ │ ├── index.js │ │ │ │ ├── package.json │ │ │ │ └── src │ │ │ │ │ ├── MakePNG.h │ │ │ │ │ ├── PngEncoder.h │ │ │ │ │ ├── common.h │ │ │ │ │ ├── include │ │ │ │ │ ├── jconfig.h │ │ │ │ │ ├── jerror.h │ │ │ │ │ ├── jmorecfg.h │ │ │ │ │ ├── jpegEncoder.h │ │ │ │ │ ├── jpeglib.h │ │ │ │ │ ├── png.h │ │ │ │ │ ├── pngconf.h │ │ │ │ │ ├── pngdebug.h │ │ │ │ │ ├── pnginfo.h │ │ │ │ │ ├── pnglibconf.h │ │ │ │ │ ├── pngpriv.h │ │ │ │ │ ├── pngstruct.h │ │ │ │ │ ├── zconf.h │ │ │ │ │ └── zlib.h │ │ │ │ │ ├── jpegEncoder.h │ │ │ │ │ ├── lib │ │ │ │ │ ├── x64 │ │ │ │ │ │ ├── jpeg.lib │ │ │ │ │ │ ├── libpng16.lib │ │ │ │ │ │ └── zlib.lib │ │ │ │ │ └── x86 │ │ │ │ │ │ ├── jpeg.lib │ │ │ │ │ │ ├── libpng16.lib │ │ │ │ │ │ └── zlib.lib │ │ │ │ │ └── main.cc │ │ │ ├── node-rfb3.8 │ │ │ │ ├── README.md │ │ │ │ ├── TestServer.js │ │ │ │ ├── lib │ │ │ │ │ └── vnc_des-ecb.js │ │ │ │ ├── node-rfb3.8.komodoproject │ │ │ │ ├── package.json │ │ │ │ ├── rfb3.8 │ │ │ │ ├── rfb3.8.js │ │ │ │ └── view.png │ │ │ └── ws │ │ │ │ ├── .npmignore │ │ │ │ ├── .travis.yml │ │ │ │ ├── History.md │ │ │ │ ├── Makefile │ │ │ │ ├── README.md │ │ │ │ ├── binding.gyp │ │ │ │ ├── build │ │ │ │ ├── Release │ │ │ │ │ ├── bufferutil.exp │ │ │ │ │ ├── bufferutil.lib │ │ │ │ │ ├── bufferutil.node │ │ │ │ │ ├── validation.exp │ │ │ │ │ ├── validation.lib │ │ │ │ │ └── validation.node │ │ │ │ ├── binding.sdf │ │ │ │ ├── binding.sln │ │ │ │ ├── binding.v12.suo │ │ │ │ ├── bufferutil.vcxproj │ │ │ │ ├── bufferutil.vcxproj.filters │ │ │ │ ├── bufferutil.vcxproj.user │ │ │ │ ├── config.gypi │ │ │ │ ├── validation.vcxproj │ │ │ │ └── validation.vcxproj.filters │ │ │ │ ├── builderror.log │ │ │ │ ├── index.js │ │ │ │ ├── lib │ │ │ │ ├── BufferPool.js │ │ │ │ ├── BufferUtil.fallback.js │ │ │ │ ├── BufferUtil.js │ │ │ │ ├── ErrorCodes.js │ │ │ │ ├── Extensions.js │ │ │ │ ├── PerMessageDeflate.js │ │ │ │ ├── Receiver.hixie.js │ │ │ │ ├── Receiver.js │ │ │ │ ├── Sender.hixie.js │ │ │ │ ├── Sender.js │ │ │ │ ├── Validation.fallback.js │ │ │ │ ├── Validation.js │ │ │ │ ├── WebSocket.js │ │ │ │ ├── WebSocketServer.js │ │ │ │ └── browser.js │ │ │ │ ├── node_modules │ │ │ │ ├── nan │ │ │ │ │ ├── .dntrc │ │ │ │ │ ├── .nan.h.un~ │ │ │ │ │ ├── CHANGELOG.md │ │ │ │ │ ├── LICENSE.md │ │ │ │ │ ├── appveyor.yml │ │ │ │ │ ├── build │ │ │ │ │ │ └── config.gypi │ │ │ │ │ ├── include_dirs.js │ │ │ │ │ ├── nan.h │ │ │ │ │ ├── nan.h.orig │ │ │ │ │ └── package.json │ │ │ │ ├── options │ │ │ │ │ ├── .npmignore │ │ │ │ │ ├── Makefile │ │ │ │ │ ├── README.md │ │ │ │ │ ├── lib │ │ │ │ │ │ └── options.js │ │ │ │ │ └── package.json │ │ │ │ └── ultron │ │ │ │ │ ├── .npmignore │ │ │ │ │ ├── .travis.yml │ │ │ │ │ ├── README.md │ │ │ │ │ ├── index.js │ │ │ │ │ ├── package.json │ │ │ │ │ └── test.js │ │ │ │ ├── package.json │ │ │ │ ├── src │ │ │ │ ├── bufferutil.cc │ │ │ │ └── validation.cc │ │ │ │ └── wscat │ │ │ │ ├── README.md │ │ │ │ ├── bin │ │ │ │ └── wscat │ │ │ │ └── package.json │ │ ├── test.js │ │ └── unity-vnc.komodoproject │ │ ├── x64.meta │ │ ├── x64 │ │ ├── node.exe │ │ └── node.exe.meta │ │ ├── x86.meta │ │ └── x86 │ │ ├── node.exe │ │ └── node.exe.meta ├── Unode.meta ├── Unode │ ├── SubDisplay.cs │ ├── SubDisplay.cs.meta │ ├── Unode_v1_3.cs │ ├── Unode_v1_3.cs.meta │ ├── Unode_v1_3.prefab │ ├── Unode_v1_3.prefab.meta │ ├── VncTexture.mat │ ├── VncTexture.mat.meta │ ├── pointer.cs │ ├── pointer.cs.meta │ ├── pointer.mat │ ├── pointer.mat.meta │ ├── pointer.prefab │ ├── pointer.prefab.meta │ ├── subDisplay.mat │ ├── subDisplay.mat.meta │ ├── test.cs │ ├── test.cs.meta │ ├── vncclient.cs │ ├── vncclient.cs.meta │ ├── vncclient.prefab │ ├── vncclient.prefab.meta │ ├── vncclient2.prefab │ └── vncclient2.prefab.meta ├── liunx.unity ├── liunx.unity.meta ├── main.unity ├── main.unity.meta ├── main2.unity ├── main2.unity.meta ├── main3.unity ├── main3.unity.meta ├── plugins.meta ├── plugins │ ├── MiniMessagePacker.cs │ ├── MiniMessagePacker.cs.meta │ ├── OculusPlugin.bundle.meta │ ├── OculusPlugin.bundle │ │ ├── Contents.meta │ │ └── Contents │ │ │ ├── Info.plist │ │ │ ├── Info.plist.meta │ │ │ ├── MacOS.meta │ │ │ ├── MacOS │ │ │ ├── OculusPlugin │ │ │ ├── OculusPlugin.meta │ │ │ ├── OculusPlugin.signature │ │ │ └── OculusPlugin.signature.meta │ │ │ ├── Resources.meta │ │ │ └── Resources │ │ │ ├── en.lproj.meta │ │ │ └── en.lproj │ │ │ ├── InfoPlist.strings │ │ │ └── InfoPlist.strings.meta │ ├── donotdelete.txt │ ├── donotdelete.txt.meta │ ├── websocket-sharp.dll │ ├── websocket-sharp.dll.meta │ ├── x86.meta │ ├── x86 │ │ ├── OculusPlugin.dll │ │ ├── OculusPlugin.dll.meta │ │ ├── OculusPlugin.dll.signature │ │ ├── OculusPlugin.dll.signature.meta │ │ ├── donotdelete.txt │ │ └── donotdelete.txt.meta │ ├── x86_64.meta │ └── x86_64 │ │ ├── OculusPlugin.dll │ │ ├── OculusPlugin.dll.meta │ │ ├── OculusPlugin.dll.signature │ │ ├── OculusPlugin.dll.signature.meta │ │ ├── donotdelete.txt │ │ ├── donotdelete.txt.meta │ │ ├── libOculusPlugin.so │ │ ├── libOculusPlugin.so.meta │ │ ├── libOculusPlugin.so.signature │ │ └── libOculusPlugin.so.signature.meta └── script.meta ├── ProjectSettings ├── AudioManager.asset ├── DynamicsManager.asset ├── EditorBuildSettings.asset ├── EditorSettings.asset ├── GraphicsSettings.asset ├── InputManager.asset ├── NavMeshLayers.asset ├── NetworkManager.asset ├── Physics2DSettings.asset ├── ProjectSettings.asset ├── QualitySettings.asset ├── TagManager.asset └── TimeManager.asset ├── Unity-VNC-Client-csharp.sln ├── Unity-VNC-Client.sln └── Unity-VNC-Client.userprefs /.gitignore: -------------------------------------------------------------------------------- 1 | [Ll]ibrary/ 2 | [Tt]emp/ 3 | [Oo]bj/ 4 | 5 | # Autogenerated VS/MD solution and project files 6 | /*.csproj 7 | /*.unityproj 8 | /*.sln 9 | /*.suo 10 | /*.user 11 | /*.userprefs 12 | /*.pidb 13 | /*.booproj 14 | 15 | exe 16 | 17 | #Unity3D Generated File On Crash Reports 18 | sysinfo.txt 19 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2015 Savant_Cat 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | 23 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | Unity-VNC-Client 2 | ================ 3 | 4 | unityのVnc client 5 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/Editor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b53060404b5482f448ad5a269c57e6f8 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/Editor/EditorIME.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using UnityEditor; 3 | using System.Collections; 4 | 5 | public class EditorIME : EditorWindow 6 | { 7 | [MenuItem("IME/Open")] 8 | static public void OpenWindow() 9 | { 10 | EditorWindow.GetWindow(false, "Editor IME", true); 11 | } 12 | 13 | private string _text=""; 14 | 15 | void OnGUI() 16 | { 17 | GUILayout.BeginHorizontal(); 18 | 19 | GUILayout.Label( "Mode" ); 20 | 21 | string[] selString = System.Enum.GetNames( typeof(IMECompositionMode) ); 22 | 23 | Input.imeCompositionMode = (IMECompositionMode)GUILayout.SelectionGrid( (int)Input.imeCompositionMode,selString,selString.Length ); 24 | 25 | GUILayout.EndHorizontal(); 26 | 27 | _text = EditorGUILayout.TextArea( _text,GUILayout.Height(80f) ); 28 | } 29 | } -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/Editor/EditorIME.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 788de9157f9bea248b7ba5b96fd4a170 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/OVR.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 869fc009969608e4a9071237c584be0d 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/OVR/Editor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 76c19abd24bec62459b5f0d26fdd9a85 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/OVR/Editor/OVRBuild.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fef522d0247215a43be6b1a8819bd940 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/OVR/Editor/OVRGameView.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b7eb13c2b94a5ad4881b22bc7e24ea8b 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/OVR/Editor/OVRPrefabs.cs: -------------------------------------------------------------------------------- 1 | /************************************************************************************ 2 | 3 | Copyright : Copyright 2014 Oculus VR, LLC. All Rights reserved. 4 | 5 | Licensed under the Oculus VR Rift SDK License Version 3.2 (the "License"); 6 | you may not use the Oculus VR Rift SDK except in compliance with the License, 7 | which is provided at the time of installation or download, or which 8 | otherwise accompanies this software in either electronic or hard copy form. 9 | 10 | You may obtain a copy of the License at 11 | 12 | http://www.oculusvr.com/licenses/LICENSE-3.2 13 | 14 | Unless required by applicable law or agreed to in writing, the Oculus VR SDK 15 | distributed under the License is distributed on an "AS IS" BASIS, 16 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | See the License for the specific language governing permissions and 18 | limitations under the License. 19 | 20 | ************************************************************************************/ 21 | 22 | using UnityEngine; 23 | using System.Collections; 24 | using UnityEditor; 25 | 26 | //------------------------------------------------------------------------------------- 27 | // ***** OVRPrefabs 28 | // 29 | // OculusPrefabs adds menu items under the Oculus main menu. It allows for quick creation 30 | // of the main Oculus prefabs without having to open the Prefab folder and dragging/dropping 31 | // into the scene. 32 | class OVRPrefabs 33 | { 34 | static void CreateOVRCameraController () 35 | { 36 | Object ovrcam = AssetDatabase.LoadAssetAtPath ("Assets/OVR/Prefabs/OVRCameraRig.prefab", typeof(UnityEngine.Object)); 37 | PrefabUtility.InstantiatePrefab(ovrcam); 38 | } 39 | 40 | static void CreateOVRPlayerController () 41 | { 42 | Object ovrcam = AssetDatabase.LoadAssetAtPath ("Assets/OVR/Prefabs/OVRPlayerController.prefab", typeof(UnityEngine.Object)); 43 | PrefabUtility.InstantiatePrefab(ovrcam); 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/OVR/Editor/OVRPrefabs.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 819d67a67d183c34ab9970fb25b42d13 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/OVR/Editor/OVRShimLoader.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8f4bc4e96f15f6048820186fdbd93878 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/OVR/Editor/OculusUnityPatcher_32.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saccadic/Unity-VNC-Client/ede140e188b9317416db3c2b0decc87dc921538f/Unity-VNC-Client/Assets/OVR/Editor/OculusUnityPatcher_32.exe -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/OVR/Editor/OculusUnityPatcher_32.exe.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d9f4ffdf6d88aa143a9fcf975e8d64d4 3 | DefaultImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/OVR/Editor/OculusUnityPatcher_64.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saccadic/Unity-VNC-Client/ede140e188b9317416db3c2b0decc87dc921538f/Unity-VNC-Client/Assets/OVR/Editor/OculusUnityPatcher_64.exe -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/OVR/Editor/OculusUnityPatcher_64.exe.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 60b9d8cdd03499d409a7e1a76d5b6d24 3 | DefaultImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/OVR/Fonts.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ea7a659b0cd8a9b43bb1600e3a4f63b0 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/OVR/Materials.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 981b5bce7fc4a2d43a2169710da4b892 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/OVR/Materials/CubeMaterial.mat: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!21 &2100000 4 | Material: 5 | serializedVersion: 3 6 | m_ObjectHideFlags: 0 7 | m_PrefabParentObject: {fileID: 0} 8 | m_PrefabInternal: {fileID: 0} 9 | m_Name: CubeMaterial 10 | m_Shader: {fileID: 7, guid: 0000000000000000f000000000000000, type: 0} 11 | m_ShaderKeywords: [] 12 | m_CustomRenderQueue: -1 13 | m_SavedProperties: 14 | serializedVersion: 2 15 | m_TexEnvs: 16 | data: 17 | first: 18 | name: _MainTex 19 | second: 20 | m_Texture: {fileID: 2800000, guid: 020d1a102a7f2a14ebf6cefe7b977303, type: 3} 21 | m_Scale: {x: 1, y: 1} 22 | m_Offset: {x: 0, y: 0} 23 | m_Floats: {} 24 | m_Colors: 25 | data: 26 | first: 27 | name: _Color 28 | second: {r: 1, g: 1, b: 1, a: 1} 29 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/OVR/Materials/CubeMaterial.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 62db2d638434d5a488dfb1e789e34b37 3 | NativeFormatImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/OVR/Materials/GUIHUD.mat: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!21 &2100000 4 | Material: 5 | serializedVersion: 3 6 | m_ObjectHideFlags: 0 7 | m_PrefabParentObject: {fileID: 0} 8 | m_PrefabInternal: {fileID: 0} 9 | m_Name: GUIHUD 10 | m_Shader: {fileID: 4800000, guid: 6c8a8b1da1d88ea4faedcf86bc33bedb, type: 3} 11 | m_ShaderKeywords: [] 12 | m_CustomRenderQueue: -1 13 | m_SavedProperties: 14 | serializedVersion: 2 15 | m_TexEnvs: 16 | data: 17 | first: 18 | name: _MainTex 19 | second: 20 | m_Texture: {fileID: 0} 21 | m_Scale: {x: 1, y: 1} 22 | m_Offset: {x: 0, y: 0} 23 | m_Floats: 24 | data: 25 | first: 26 | name: _Cutoff 27 | second: .5 28 | m_Colors: 29 | data: 30 | first: 31 | name: _Color 32 | second: {r: 1, g: 1, b: 1, a: 1} 33 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/OVR/Materials/GUIHUD.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cb648531a855abe449cce4f05baba2e1 3 | NativeFormatImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/OVR/Materials/MagHUDRef.mat: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!21 &2100000 4 | Material: 5 | serializedVersion: 3 6 | m_ObjectHideFlags: 0 7 | m_PrefabParentObject: {fileID: 0} 8 | m_PrefabInternal: {fileID: 0} 9 | m_Name: MagHUDRef 10 | m_Shader: {fileID: 4800000, guid: f1fdc2840422b4d46b52860f838dc54b, type: 3} 11 | m_ShaderKeywords: [] 12 | m_CustomRenderQueue: -1 13 | m_SavedProperties: 14 | serializedVersion: 2 15 | m_TexEnvs: 16 | data: 17 | first: 18 | name: _MainTex 19 | second: 20 | m_Texture: {fileID: 0} 21 | m_Scale: {x: 1, y: 1} 22 | m_Offset: {x: 0, y: 0} 23 | m_Floats: {} 24 | m_Colors: 25 | data: 26 | first: 27 | name: _Color 28 | second: {r: 1, g: 1, b: 1, a: 1} 29 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/OVR/Materials/MagHUDRef.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1e94cba1c2e70664a9e1ebcc8379d2e5 3 | NativeFormatImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/OVR/Materials/MagHUDTracked.mat: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!21 &2100000 4 | Material: 5 | serializedVersion: 3 6 | m_ObjectHideFlags: 0 7 | m_PrefabParentObject: {fileID: 0} 8 | m_PrefabInternal: {fileID: 0} 9 | m_Name: MagHUDTracked 10 | m_Shader: {fileID: 4800000, guid: f1fdc2840422b4d46b52860f838dc54b, type: 3} 11 | m_ShaderKeywords: [] 12 | m_CustomRenderQueue: -1 13 | m_SavedProperties: 14 | serializedVersion: 2 15 | m_TexEnvs: 16 | data: 17 | first: 18 | name: _MainTex 19 | second: 20 | m_Texture: {fileID: 0} 21 | m_Scale: {x: 1, y: 1} 22 | m_Offset: {x: 0, y: 0} 23 | m_Floats: {} 24 | m_Colors: 25 | data: 26 | first: 27 | name: _Color 28 | second: {r: .0489509106, g: 1, b: 0, a: 1} 29 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/OVR/Materials/MagHUDTracked.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6db6873b822ee7944bb3474fb265452d 3 | NativeFormatImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/OVR/Materials/TextShader3D.mat: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!21 &2100000 4 | Material: 5 | serializedVersion: 3 6 | m_ObjectHideFlags: 0 7 | m_PrefabParentObject: {fileID: 0} 8 | m_PrefabInternal: {fileID: 0} 9 | m_Name: TextShader3D 10 | m_Shader: {fileID: 4800000, guid: a98fee05e306bdd42a08755fd134dd7b, type: 3} 11 | m_ShaderKeywords: [] 12 | m_CustomRenderQueue: -1 13 | m_SavedProperties: 14 | serializedVersion: 2 15 | m_TexEnvs: 16 | data: 17 | first: 18 | name: _MainTex 19 | second: 20 | m_Texture: {fileID: 2800000, guid: 1c269d0237399244b8348181594cc1ba, type: 3} 21 | m_Scale: {x: 1, y: 1} 22 | m_Offset: {x: 0, y: 0} 23 | m_Floats: {} 24 | m_Colors: 25 | data: 26 | first: 27 | name: _Color 28 | second: {r: 1, g: .889655113, b: 0, a: 1} 29 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/OVR/Materials/TextShader3D.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e2c15420cfb9f344f9f7b5a4d3290e17 3 | NativeFormatImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/OVR/Prefabs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bfe39332fdb4cb044b619b3e4b890396 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/OVR/Prefabs/OVRCameraRig.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 126d619cf4daa52469682f85c1378b4a 3 | NativeFormatImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/OVR/Prefabs/OVRPlayerController.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ce816f2e6abb0504092c23ed9b970dfd 3 | NativeFormatImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/OVR/Resources.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 95fedd445e9f9fc49a2397fbe363a65a 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/OVR/Resources/DINPro-Bold.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saccadic/Unity-VNC-Client/ede140e188b9317416db3c2b0decc87dc921538f/Unity-VNC-Client/Assets/OVR/Resources/DINPro-Bold.otf -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/OVR/Resources/DINPro-Bold.otf.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2eab921198154ec4e934bfe68d06d984 3 | TrueTypeFontImporter: 4 | serializedVersion: 2 5 | fontSize: 16 6 | forceTextureCase: -2 7 | characterSpacing: 1 8 | characterPadding: 0 9 | includeFontData: 1 10 | use2xBehaviour: 0 11 | fontNames: [] 12 | customCharacters: 13 | fontRenderingMode: 0 14 | userData: 15 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/OVR/Resources/OVRGuiObjectMain.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 016fcd49957717d4ea62b0505cd796a2 3 | NativeFormatImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/OVR/Resources/OVRVisionGuideMessage.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5f5583bc57bb8574a8bd16fd6ca86eb6 3 | NativeFormatImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/OVR/Scenes.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 68bc04068edcc1a4d89699ab4e2e69ae 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/OVR/Scenes/Cubes.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d920b3d2525670f4abad3d20eda3b349 3 | DefaultImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/OVR/Scenes/MultiCamera.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b79c0ac287d1b944fbdb61ca76c1a243 3 | DefaultImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/OVR/Scripts.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 859d6d3fcffe1bb41ac06f93d267fc9d 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/OVR/Scripts/OVRCameraRig.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: df9f338034892c44ebb62d97894772f1 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/OVR/Scripts/OVRCommon.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 176f8d665b1d78048b1e87956698df6b 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/OVR/Scripts/OVRDisplay.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bb365ebe8e821fc4e81e9dca9d704357 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/OVR/Scripts/OVRManager.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7e933e81d3c20c74ea6fdc708a67e3a5 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: -100 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/OVR/Scripts/OVRPluginEvent.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8c966a1e226afb34a8c9eeaedd190d3c 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/OVR/Scripts/OVRTracker.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7cb3c9d4cb0970e448c655096649e814 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/OVR/Scripts/OvrCapi.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bcd3869634fafaf4581b18fa1b4bfdac 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/OVR/Scripts/Util.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c0c7a593695f68e4bbe0cabb0f4f93f2 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/OVR/Scripts/Util/OVRCrosshair.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 950c15b22381d7f4dbac53b7eff1cf29 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/OVR/Scripts/Util/OVRGUI.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 899b4ccf2cd0ac0469604b59878e94b7 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/OVR/Scripts/Util/OVRGamepadController.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1bf170db1c6a44a44941f0cfb6048fd4 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/OVR/Scripts/Util/OVRGridCube.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4988596c8a187f94f8e6a345ebb4254b 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/OVR/Scripts/Util/OVRMainMenu.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e437ffb7de5844b42b64f89763daf449 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/OVR/Scripts/Util/OVRPlayerController.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0950df82e7936c84983497630bde5b54 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/OVR/Scripts/Util/OVRScreenFade.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: df8e1d778abf442e4bec449c360e9e1c 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: -100 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/OVR/Scripts/Util/OVRUGUI.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ae4f698123c968241927b09faf9dd0bf 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/OVR/Scripts/Util/OVRVisionGuide.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3905bca6880ff764e9467472f2fdada2 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/OVR/Shaders.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 661c903790cd5b6489ed5d6acc47ed66 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/OVR/Shaders/OVRGUIShader.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6c8a8b1da1d88ea4faedcf86bc33bedb 3 | ShaderImporter: 4 | defaultTextures: [] 5 | userData: 6 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/OVR/Shaders/TextShader3D.shader: -------------------------------------------------------------------------------- 1 | /************************************************************************************ 2 | 3 | Copyright : Copyright 2014 Oculus VR, LLC. All Rights reserved. 4 | 5 | Licensed under the Oculus VR Rift SDK License Version 3.2 (the "License"); 6 | you may not use the Oculus VR Rift SDK except in compliance with the License, 7 | which is provided at the time of installation or download, or which 8 | otherwise accompanies this software in either electronic or hard copy form. 9 | 10 | You may obtain a copy of the License at 11 | 12 | http://www.oculusvr.com/licenses/LICENSE-3.2 13 | 14 | Unless required by applicable law or agreed to in writing, the Oculus VR SDK 15 | distributed under the License is distributed on an "AS IS" BASIS, 16 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | See the License for the specific language governing permissions and 18 | limitations under the License. 19 | 20 | ************************************************************************************/ 21 | 22 | Shader "GUI/3D Text Shader" 23 | { 24 | Properties 25 | { 26 | _MainTex ("Font Texture", 2D) = "white" {} 27 | _Color ("Text Color", Color) = (1,1,1,1) 28 | } 29 | 30 | SubShader 31 | { 32 | Tags { "Queue"="Overlay+1" "IgnoreProjector"="True" "RenderType"="Transparent" } 33 | Lighting Off Cull Off ZWrite Off ZTest Off Fog { Mode Off } 34 | Blend SrcAlpha One 35 | Pass 36 | { 37 | Color [_Color] 38 | SetTexture [_MainTex] 39 | { 40 | combine primary, texture * primary 41 | } 42 | } 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/OVR/Shaders/TextShader3D.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a98fee05e306bdd42a08755fd134dd7b 3 | ShaderImporter: 4 | defaultTextures: [] 5 | userData: 6 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/OVR/Textures.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1938789817fe3974ea20e502ed4bcd76 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/OVR/Textures/Black.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saccadic/Unity-VNC-Client/ede140e188b9317416db3c2b0decc87dc921538f/Unity-VNC-Client/Assets/OVR/Textures/Black.png -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/OVR/Textures/Black.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a025c23fceb7d4966b603419f551ce99 3 | TextureImporter: 4 | fileIDToRecycleName: {} 5 | serializedVersion: 2 6 | mipmaps: 7 | mipMapMode: 0 8 | enableMipMap: 1 9 | linearTexture: 0 10 | correctGamma: 0 11 | fadeOut: 0 12 | borderMipMap: 0 13 | mipMapFadeDistanceStart: 2 14 | mipMapFadeDistanceEnd: 3 15 | bumpmap: 16 | convertToNormalMap: 0 17 | externalNormalMap: 0 18 | heightScale: .25 19 | normalMapFilter: 0 20 | isReadable: 0 21 | grayScaleToAlpha: 0 22 | generateCubemap: 0 23 | seamlessCubemap: 0 24 | textureFormat: -1 25 | maxTextureSize: 1024 26 | textureSettings: 27 | filterMode: 1 28 | aniso: 1 29 | mipBias: 0 30 | wrapMode: 0 31 | nPOTScale: 0 32 | lightmap: 0 33 | compressionQuality: 50 34 | spriteMode: 0 35 | spriteExtrude: 1 36 | spriteMeshType: 1 37 | alignment: 0 38 | spritePivot: {x: .5, y: .5} 39 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 40 | spritePixelsToUnits: 100 41 | alphaIsTransparency: 0 42 | textureType: -1 43 | buildTargetSettings: [] 44 | spriteSheet: 45 | sprites: [] 46 | spritePackingTag: 47 | userData: 48 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/OVR/Textures/CircleCrossHair.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saccadic/Unity-VNC-Client/ede140e188b9317416db3c2b0decc87dc921538f/Unity-VNC-Client/Assets/OVR/Textures/CircleCrossHair.png -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/OVR/Textures/CircleCrossHair.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 64ce76f827a71b44da62c30c0b506fd2 3 | TextureImporter: 4 | fileIDToRecycleName: {} 5 | serializedVersion: 2 6 | mipmaps: 7 | mipMapMode: 0 8 | enableMipMap: 1 9 | linearTexture: 0 10 | correctGamma: 0 11 | fadeOut: 0 12 | borderMipMap: 0 13 | mipMapFadeDistanceStart: 1 14 | mipMapFadeDistanceEnd: 3 15 | bumpmap: 16 | convertToNormalMap: 0 17 | externalNormalMap: 0 18 | heightScale: .25 19 | normalMapFilter: 0 20 | isReadable: 0 21 | grayScaleToAlpha: 0 22 | generateCubemap: 0 23 | seamlessCubemap: 0 24 | textureFormat: -1 25 | maxTextureSize: 1024 26 | textureSettings: 27 | filterMode: -1 28 | aniso: -1 29 | mipBias: -1 30 | wrapMode: -1 31 | nPOTScale: 1 32 | lightmap: 0 33 | compressionQuality: 50 34 | spriteMode: 0 35 | spriteExtrude: 1 36 | spriteMeshType: 1 37 | alignment: 0 38 | spritePivot: {x: .5, y: .5} 39 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 40 | spritePixelsToUnits: 100 41 | alphaIsTransparency: 0 42 | textureType: -1 43 | buildTargetSettings: [] 44 | spriteSheet: 45 | sprites: [] 46 | spritePackingTag: 47 | userData: 48 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/OVR/Textures/Crosshair.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saccadic/Unity-VNC-Client/ede140e188b9317416db3c2b0decc87dc921538f/Unity-VNC-Client/Assets/OVR/Textures/Crosshair.tga -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/OVR/Textures/Crosshair.tga.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0565332d540dbcf4d9a01224a867cee8 3 | TextureImporter: 4 | fileIDToRecycleName: {} 5 | serializedVersion: 2 6 | mipmaps: 7 | mipMapMode: 0 8 | enableMipMap: 1 9 | linearTexture: 0 10 | correctGamma: 0 11 | fadeOut: 0 12 | borderMipMap: 0 13 | mipMapFadeDistanceStart: 1 14 | mipMapFadeDistanceEnd: 3 15 | bumpmap: 16 | convertToNormalMap: 0 17 | externalNormalMap: 0 18 | heightScale: .25 19 | normalMapFilter: 0 20 | isReadable: 0 21 | grayScaleToAlpha: 0 22 | generateCubemap: 0 23 | seamlessCubemap: 0 24 | textureFormat: -1 25 | maxTextureSize: 1024 26 | textureSettings: 27 | filterMode: -1 28 | aniso: -1 29 | mipBias: -1 30 | wrapMode: -1 31 | nPOTScale: 1 32 | lightmap: 0 33 | compressionQuality: 50 34 | spriteMode: 0 35 | spriteExtrude: 1 36 | spriteMeshType: 1 37 | alignment: 0 38 | spritePivot: {x: .5, y: .5} 39 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 40 | spritePixelsToUnits: 100 41 | alphaIsTransparency: 0 42 | textureType: -1 43 | buildTargetSettings: [] 44 | spriteSheet: 45 | sprites: [] 46 | spritePackingTag: 47 | userData: 48 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/OVR/Textures/Icons.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e081f465852cec14380da085e957c52b 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/OVR/Textures/Icons/OculusIcon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saccadic/Unity-VNC-Client/ede140e188b9317416db3c2b0decc87dc921538f/Unity-VNC-Client/Assets/OVR/Textures/Icons/OculusIcon.png -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/OVR/Textures/Icons/OculusIcon.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ee6b6c047f060074596445bbb9ebbfe7 3 | TextureImporter: 4 | fileIDToRecycleName: {} 5 | serializedVersion: 2 6 | mipmaps: 7 | mipMapMode: 0 8 | enableMipMap: 1 9 | linearTexture: 0 10 | correctGamma: 0 11 | fadeOut: 0 12 | borderMipMap: 0 13 | mipMapFadeDistanceStart: 1 14 | mipMapFadeDistanceEnd: 3 15 | bumpmap: 16 | convertToNormalMap: 0 17 | externalNormalMap: 0 18 | heightScale: .25 19 | normalMapFilter: 0 20 | isReadable: 0 21 | grayScaleToAlpha: 1 22 | generateCubemap: 0 23 | seamlessCubemap: 0 24 | textureFormat: -3 25 | maxTextureSize: 128 26 | textureSettings: 27 | filterMode: -1 28 | aniso: -1 29 | mipBias: -1 30 | wrapMode: -1 31 | nPOTScale: 1 32 | lightmap: 0 33 | compressionQuality: 50 34 | spriteMode: 0 35 | spriteExtrude: 1 36 | spriteMeshType: 1 37 | alignment: 0 38 | spritePivot: {x: .5, y: .5} 39 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 40 | spritePixelsToUnits: 100 41 | alphaIsTransparency: 0 42 | textureType: -1 43 | buildTargetSettings: [] 44 | spriteSheet: 45 | sprites: [] 46 | spritePackingTag: 47 | userData: 48 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/OVR/Textures/Logos.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1c18650754748f647bacde4e2116cbff 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/OVR/Textures/Logos/OculusLogo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saccadic/Unity-VNC-Client/ede140e188b9317416db3c2b0decc87dc921538f/Unity-VNC-Client/Assets/OVR/Textures/Logos/OculusLogo.png -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/OVR/Textures/Logos/OculusLogo.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a56d69833b6471340bd0029e57449b72 3 | TextureImporter: 4 | fileIDToRecycleName: {} 5 | serializedVersion: 2 6 | mipmaps: 7 | mipMapMode: 0 8 | enableMipMap: 1 9 | linearTexture: 0 10 | correctGamma: 0 11 | fadeOut: 0 12 | borderMipMap: 0 13 | mipMapFadeDistanceStart: 1 14 | mipMapFadeDistanceEnd: 3 15 | bumpmap: 16 | convertToNormalMap: 0 17 | externalNormalMap: 0 18 | heightScale: .25 19 | normalMapFilter: 0 20 | isReadable: 0 21 | grayScaleToAlpha: 0 22 | generateCubemap: 0 23 | seamlessCubemap: 0 24 | textureFormat: -3 25 | maxTextureSize: 1024 26 | textureSettings: 27 | filterMode: -1 28 | aniso: -1 29 | mipBias: -1 30 | wrapMode: -1 31 | nPOTScale: 0 32 | lightmap: 0 33 | compressionQuality: 50 34 | spriteMode: 0 35 | spriteExtrude: 1 36 | spriteMeshType: 1 37 | alignment: 0 38 | spritePivot: {x: .5, y: .5} 39 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 40 | spritePixelsToUnits: 100 41 | alphaIsTransparency: 0 42 | textureType: 5 43 | buildTargetSettings: [] 44 | spriteSheet: 45 | sprites: [] 46 | spritePackingTag: 47 | userData: 48 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/OVR/Textures/Tuscany_OculusCube.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saccadic/Unity-VNC-Client/ede140e188b9317416db3c2b0decc87dc921538f/Unity-VNC-Client/Assets/OVR/Textures/Tuscany_OculusCube.tga -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/OVR/Textures/Tuscany_OculusCube.tga.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 020d1a102a7f2a14ebf6cefe7b977303 3 | TextureImporter: 4 | fileIDToRecycleName: {} 5 | serializedVersion: 2 6 | mipmaps: 7 | mipMapMode: 0 8 | enableMipMap: 1 9 | linearTexture: 0 10 | correctGamma: 0 11 | fadeOut: 0 12 | borderMipMap: 0 13 | mipMapFadeDistanceStart: 1 14 | mipMapFadeDistanceEnd: 3 15 | bumpmap: 16 | convertToNormalMap: 0 17 | externalNormalMap: 0 18 | heightScale: .25 19 | normalMapFilter: 0 20 | isReadable: 0 21 | grayScaleToAlpha: 0 22 | generateCubemap: 0 23 | seamlessCubemap: 0 24 | textureFormat: -1 25 | maxTextureSize: 1024 26 | textureSettings: 27 | filterMode: -1 28 | aniso: -1 29 | mipBias: -1 30 | wrapMode: -1 31 | nPOTScale: 1 32 | lightmap: 0 33 | compressionQuality: 50 34 | spriteMode: 0 35 | spriteExtrude: 1 36 | spriteMeshType: 1 37 | alignment: 0 38 | spritePivot: {x: .5, y: .5} 39 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 40 | spritePixelsToUnits: 100 41 | alphaIsTransparency: 0 42 | textureType: -1 43 | buildTargetSettings: [] 44 | spriteSheet: 45 | sprites: [] 46 | spritePackingTag: 47 | userData: 48 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/OVR/Textures/UIBackground.psd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saccadic/Unity-VNC-Client/ede140e188b9317416db3c2b0decc87dc921538f/Unity-VNC-Client/Assets/OVR/Textures/UIBackground.psd -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/OVR/Textures/UIBackground.psd.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3b18dccbdca599d45bc0f2a8a234b503 3 | TextureImporter: 4 | fileIDToRecycleName: {} 5 | serializedVersion: 2 6 | mipmaps: 7 | mipMapMode: 0 8 | enableMipMap: 0 9 | linearTexture: 0 10 | correctGamma: 0 11 | fadeOut: 0 12 | borderMipMap: 0 13 | mipMapFadeDistanceStart: 1 14 | mipMapFadeDistanceEnd: 3 15 | bumpmap: 16 | convertToNormalMap: 0 17 | externalNormalMap: 0 18 | heightScale: .25 19 | normalMapFilter: 0 20 | isReadable: 0 21 | grayScaleToAlpha: 0 22 | generateCubemap: 0 23 | seamlessCubemap: 0 24 | textureFormat: -1 25 | maxTextureSize: 1024 26 | textureSettings: 27 | filterMode: -1 28 | aniso: 1 29 | mipBias: -1 30 | wrapMode: 1 31 | nPOTScale: 0 32 | lightmap: 0 33 | compressionQuality: 50 34 | spriteMode: 1 35 | spriteExtrude: 1 36 | spriteMeshType: 1 37 | alignment: 0 38 | spritePivot: {x: .5, y: .5} 39 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 40 | spritePixelsToUnits: 100 41 | alphaIsTransparency: 1 42 | textureType: 8 43 | buildTargetSettings: [] 44 | spriteSheet: 45 | sprites: [] 46 | spritePackingTag: 47 | userData: 48 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b892699d18096ba409ae77f1d09e5f1a 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/script.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ae0b8d8d8756e774e9eee66222b01e16 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/cluster/.gitignore: -------------------------------------------------------------------------------- 1 | testing 2 | test.js 3 | nohup.out 4 | node_modules 5 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/cluster/.gitmodules: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saccadic/Unity-VNC-Client/ede140e188b9317416db3c2b0decc87dc921538f/Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/cluster/.gitmodules -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/cluster/.npmignore: -------------------------------------------------------------------------------- 1 | test.js 2 | test 3 | testing 4 | examples 5 | *.sock 6 | *.pid 7 | *.log 8 | node_modules 9 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/cluster/LICENSE: -------------------------------------------------------------------------------- 1 | (The MIT License) 2 | 3 | Copyright (c) 2011 LearnBoost 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining 6 | a copy of this software and associated documentation files (the 7 | 'Software'), to deal in the Software without restriction, including 8 | without limitation the rights to use, copy, modify, merge, publish, 9 | distribute, sublicense, and/or sell copies of the Software, and to 10 | permit persons to whom the Software is furnished to do so, subject to 11 | the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be 14 | included in all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, 17 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 18 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 19 | IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 20 | CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 21 | TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 22 | SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/cluster/Makefile: -------------------------------------------------------------------------------- 1 | 2 | test: 3 | @./test/run 4 | 5 | test-debug: 6 | @./test/run debug 7 | 8 | .PHONY: test test-debug -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/cluster/docs/cli.md: -------------------------------------------------------------------------------- 1 | 2 | ## CLI 3 | 4 | Adds a command-line interface to your cluster. 5 | 6 | ### Usage 7 | 8 | This plugin requires that you use `pidfiles()` 9 | above `cli()`, so that the pidfile directory 10 | is exposed. 11 | 12 | cluster(server) 13 | .use(cluster.pidfiles()) 14 | .use(cluster.cli()) 15 | .listen(3000); 16 | 17 | Once set up our server script serves as both 18 | the master, and the CLI. For example we may 19 | still launch the server(s) as shown below. 20 | 21 | $ nohup node server.js & 22 | 23 | However now we may also utilize commands 24 | provided by this plugin. 25 | 26 | $ node server.js status 27 | 28 | master 3281 alive 29 | worker 0 3282 dead 30 | worker 1 3283 alive 31 | worker 2 3284 alive 32 | worker 3 3285 alive 33 | 34 | $ node server.js restart 35 | $ node server.js shutdown 36 | 37 | For more command information use `--help`. 38 | 39 | $ node server.js --help 40 | 41 | ### Defining CLI Commands 42 | 43 | Plugins may define additional commands, simply by invoking `cluster.cli.define()` passing the flag(s), a callback function, 44 | and a description. Below is the implementation of `--help` for reference: 45 | 46 | var cli = require('cluster').cli; 47 | 48 | cli.define('-h, --help, help', function(master){ 49 | console.log('\n Usage: node \n'); 50 | commands.forEach(function(command){ 51 | console.log(' ' 52 | + command.flags.join(', ') 53 | + '\n ' 54 | + '\033[90m' + command.desc + '\033[0m' 55 | + '\n'); 56 | }); 57 | console.log(); 58 | process.exit(); 59 | }, 'Show help information'); 60 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/cluster/docs/debug.md: -------------------------------------------------------------------------------- 1 | 2 | ## Debug 3 | 4 | Outputs verbose debugging information to _stderr_. 5 | 6 | info - master started 7 | info - worker 0 spawned 8 | info - worker 1 spawned 9 | info - worker 2 spawned 10 | info - worker 3 spawned 11 | info - worker 2 connected 12 | info - worker 0 connected 13 | info - worker 3 connected 14 | info - worker 1 connected 15 | info - listening for connections 16 | ^C info - shutting down 17 | warning - kill(SIGKILL) 18 | info - shutdown complete 19 | warning - worker 2 died 20 | warning - worker 0 died 21 | warning - worker 3 died 22 | 23 | ## Usage 24 | 25 | cluster(server) 26 | .use(cluster.debug()) 27 | .listen(3000); 28 | 29 | ### Options 30 | 31 | - `colors` enable color output, defaults to true -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/cluster/docs/logger.md: -------------------------------------------------------------------------------- 1 | 2 | ## Logger 3 | 4 | File-based logging of both the _master_ and _worker_ processes. 5 | 6 | ### Usage 7 | 8 | The `logger([path[, level]])` plugin accepts an optional `path`, and optional `level` to control the verbosity of the master process logs. By default the log level is _info_. 9 | 10 | Outputting to `./logs`: 11 | 12 | cluster(server) 13 | .use(cluster.logger()) 14 | .listen(3000); 15 | 16 | 17 | Outputting to `./tmp/logs`: 18 | 19 | cluster(server) 20 | .use(cluster.logger('tmp/logs')) 21 | .listen(3000); 22 | 23 | Outputting to `/var/log/node` with a log level of `debug`: 24 | 25 | cluster(server) 26 | .use(cluster.logger('/var/log/node', 'debug')) 27 | .listen(3000); 28 | 29 | Generated files: 30 | 31 | master.log 32 | workers.access.log 33 | workers.error.log -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/cluster/docs/pidfiles.md: -------------------------------------------------------------------------------- 1 | 2 | ## PID Files 3 | 4 | Saves out PID files, for example: 5 | 6 | master.pid 7 | worker.0.pid 8 | worker.1.pid 9 | worker.2.pid 10 | worker.3.pid 11 | 12 | ### Usage 13 | 14 | The `pidfiles([path])` plugin saves pid (process-id) files to the given `path` or `./pids`. 15 | 16 | save to `./pids`: 17 | 18 | cluster(server) 19 | .use(cluster.pidfiles()) 20 | .listen(3000); 21 | 22 | save to `/var/run/node`: 23 | 24 | cluster(server) 25 | .use(cluster.pidfiles('/var/run/node')) 26 | .listen(3000); 27 | 28 | ### master.pidfiles 29 | 30 | The pidfiles directory. 31 | 32 | ### master.pidof(name) 33 | 34 | Return a __PID__ for the given `name`. 35 | 36 | master.pidof('master') 37 | // => 5978 38 | 39 | master.pidof('worker.0') 40 | // => 5979 41 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/cluster/docs/reload.md: -------------------------------------------------------------------------------- 1 | ## Reload 2 | 3 | Restart the server the given js `files` have changed. 4 | `files` may be several directories, filenames, etc, defaulting 5 | to the script's directory. 6 | 7 | ### Options 8 | 9 | - `signal` Signal to send, defaults to __SIGTERM__ 10 | - `interval` Watcher interval, defaulting to `100` 11 | 12 | ### Usage 13 | 14 | The `reload(paths[, signal])` plugin accepts a single path, or an array of paths, watching for __mtime__ changes, and re-loading the workers when a change has been made. By default the __SIGTERM__ signal is sent, killing the workers immediately, however we may pass a `signal` for graceful termination as well. 15 | 16 | Reload when files in `./` (`__dirname`) change: 17 | 18 | cluster(server) 19 | .use(cluster.reload()) 20 | .listen(3000); 21 | 22 | Reload when files in `./lib` change: 23 | 24 | cluster(server) 25 | .use(cluster.reload('lib')) 26 | .listen(3000); 27 | 28 | Reload when files in `./lib`, `./tests`, or the `./index.js` file change: 29 | 30 | cluster(server) 31 | .use(cluster.reload(['lib', 'tests', 'index.js'])) 32 | .listen(3000); 33 | 34 | Graceful shutdown: 35 | 36 | cluster(server) 37 | .use(cluster.reload('lib', { signal: 'SIGQUIT' })) 38 | .listen(3000); 39 | 40 | Watching coffee-script files as well. 41 | 42 | cluster(server) 43 | .use(cluster.reload('lib', { extensions: ['.js', '.coffee'] })) 44 | .listen(3000); -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/cluster/examples/.gitignore: -------------------------------------------------------------------------------- 1 | repl 2 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/cluster/examples/app-cluster.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Module dependencies. 3 | */ 4 | 5 | var cluster = require('../'); 6 | 7 | // $ telnet localhost 8888 8 | 9 | cluster('app.js') 10 | .set('workers', 4) 11 | .use(cluster.logger('logs')) 12 | .use(cluster.stats({ connections: true, requests: true })) 13 | .use(cluster.repl(8888, '127.0.0.1')) 14 | .use(cluster.debug()) 15 | .listen(3000); -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/cluster/examples/app.js: -------------------------------------------------------------------------------- 1 | 2 | var http = require('http'); 3 | 4 | module.exports = http.createServer(function(req, res){ 5 | console.log('%s %s', req.method, req.url); 6 | var body = 'Hello'; 7 | res.writeHead(200, { 'Content-Length': body.length }); 8 | res.end(body); 9 | }); 10 | 11 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/cluster/examples/basic.js: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * Module dependencies. 4 | */ 5 | 6 | var cluster = require('../') 7 | , http = require('http'); 8 | 9 | var body = 'Hello World' 10 | , len = body.length; 11 | var server = http.createServer(function(req, res){ 12 | res.writeHead(200, { 'Content-Length': len }); 13 | res.end(body); 14 | }); 15 | 16 | cluster(server) 17 | .set('workers', 4) 18 | .set('working directory', '/') 19 | .listen(3000); -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/cluster/examples/cli-app.js: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * Module dependencies. 4 | */ 5 | 6 | var http = require('http'); 7 | 8 | module.exports = http.createServer(function(req, res){ 9 | console.log('%s %s', req.method, req.url); 10 | var body = 'Hello World'; 11 | res.writeHead(200, { 'Content-Length': body.length }); 12 | res.end(body); 13 | }); -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/cluster/examples/cli.js: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * Module dependencies. 4 | */ 5 | 6 | var cluster = require('../'); 7 | 8 | // Launch the cluster: 9 | // $ nohup node examples/cli.js & 10 | 11 | // Check the status: 12 | // $ node examples/cli.js status 13 | 14 | // View other commands: 15 | // $ node examples/cli.js --help 16 | 17 | cluster('cli-app') 18 | .use(cluster.pidfiles()) 19 | .use(cluster.debug()) 20 | .use(cluster.cli()) 21 | .listen(3000); 22 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/cluster/examples/connect.js: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * Module dependencies. 4 | */ 5 | 6 | var cluster = require('../') 7 | , connect = require('connect') 8 | , http = require('http'); 9 | 10 | // setup: 11 | // $ npm install connect 12 | 13 | var server = connect.createServer(); 14 | 15 | server.use(function(req, res, next){ 16 | var body = 'Hello World'; 17 | res.writeHead(200, { 'Content-Length': body.length }); 18 | res.end(body); 19 | }); 20 | 21 | cluster(server) 22 | .set('workers', 4) 23 | .use(cluster.debug()) 24 | .listen(3000); -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/cluster/examples/debug.js: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * Module dependencies. 4 | */ 5 | 6 | var cluster = require('../') 7 | , http = require('http'); 8 | 9 | var server = http.createServer(function(req, res){ 10 | console.log('%s %s', req.method, req.url); 11 | var body = 'Hello World'; 12 | res.writeHead(200, { 'Content-Length': body.length }); 13 | res.end(body); 14 | }); 15 | 16 | cluster(server) 17 | .set('workers', 4) 18 | .use(cluster.logger('logs', 'debug')) 19 | .use(cluster.debug()) 20 | .listen(3000); -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/cluster/examples/envs.js: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * Module dependencies. 4 | */ 5 | 6 | var cluster = require('../') 7 | , http = require('http'); 8 | 9 | var body = 'Hello World' 10 | , len = body.length; 11 | var server = http.createServer(function(req, res){ 12 | res.writeHead(200, { 'Content-Length': len }); 13 | res.end(body); 14 | }); 15 | 16 | // use: 17 | 18 | // cluster(server) 19 | // .set('working directory', '/') 20 | // .in('production').set('workers', 4) 21 | // .in('development').set('workers', 1) 22 | // .in('production').use(cluster.logger()) 23 | // .in('production').use(cluster.pidfiles()) 24 | // .in('development').use(cluster.logger('logs', 'debug')) 25 | // .in('development').use(cluster.debug()) 26 | // .in('production').listen(80) 27 | // .in('development').listen(3000); 28 | 29 | // or groups: 30 | 31 | cluster(server) 32 | .set('working directory', '/') 33 | .in('development') 34 | .set('workers', 1) 35 | .use(cluster.logger('logs', 'debug')) 36 | .use(cluster.debug()) 37 | .use(cluster.repl(8888)) 38 | .listen(3000) 39 | .in('production') 40 | .set('workers', 4) 41 | .use(cluster.logger()) 42 | .use(cluster.pidfiles()) 43 | .listen(80); 44 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/cluster/examples/error.js: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * Module dependencies. 4 | */ 5 | 6 | var cluster = require('../') 7 | , http = require('http'); 8 | 9 | var server = http.createServer(function(req, res){ 10 | if (5 == (Math.random() * 10 | 0)) throw new Error('failed!'); 11 | console.log('%s %s', req.method, req.url); 12 | var body = 'Hello World'; 13 | res.writeHead(200, { 'Content-Length': body.length }); 14 | res.end(body); 15 | }); 16 | 17 | var proc = cluster(server) 18 | .use(cluster.debug()) 19 | .use(cluster.stats()) 20 | .use(cluster.repl(__dirname + '/repl')) 21 | .listen(3000); 22 | 23 | if (proc.isWorker) { 24 | // you can register your own exceptionHandler 25 | // which will prevent Cluster from add its own. This 26 | // means the workers will be harder to kill, however 27 | // if you do not employ additional logic, connections 28 | // will remain open until timeout. 29 | process.on('uncaughtException', function(err){ 30 | console.error(err); 31 | }); 32 | } -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/cluster/examples/express.js: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * Module dependencies. 4 | */ 5 | 6 | var cluster = require('../') 7 | , express = require('express') 8 | , http = require('http'); 9 | 10 | // setup: 11 | // $ npm install express 12 | 13 | var app = express.createServer(); 14 | 15 | app.get('/', function(req, res){ 16 | res.send('Hello World'); 17 | }); 18 | 19 | cluster(app) 20 | .set('workers', 4) 21 | .use(cluster.debug()) 22 | .listen(3000); -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/cluster/examples/logger.js: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * Module dependencies. 4 | */ 5 | 6 | var cluster = require('../') 7 | , http = require('http'); 8 | 9 | var server = http.createServer(function(req, res){ 10 | console.log('%s %s', req.method, req.url); 11 | var body = 'Hello World'; 12 | res.writeHead(200, { 'Content-Length': body.length }); 13 | res.end(body); 14 | }); 15 | 16 | cluster(server) 17 | .use(cluster.logger()) 18 | .listen(3000); -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/cluster/examples/logs/.gitignore: -------------------------------------------------------------------------------- 1 | *.log -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/cluster/examples/pids.js: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * Module dependencies. 4 | */ 5 | 6 | var cluster = require('../') 7 | , http = require('http'); 8 | 9 | var body = 'Hello World' 10 | , len = body.length; 11 | var server = http.createServer(function(req, res){ 12 | res.writeHead(200, { 'Content-Length': len }); 13 | res.end(body); 14 | }); 15 | 16 | cluster(server) 17 | .use(cluster.debug()) 18 | .use(cluster.pidfiles()) 19 | .use(cluster.logger()) 20 | .listen(3000); -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/cluster/examples/pids/.gitignore: -------------------------------------------------------------------------------- 1 | *.pid 2 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/cluster/examples/reload.js: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * Module dependencies. 4 | */ 5 | 6 | var cluster = require('../') 7 | , http = require('http'); 8 | 9 | // try loading, and changing "Hello", to "Hello World" 10 | 11 | var body = 'Hello' 12 | , len = body.length; 13 | var server = http.createServer(function(req, res){ 14 | res.writeHead(200, { 'Content-Length': len }); 15 | res.end(body); 16 | }); 17 | 18 | cluster(server) 19 | // lower worker count will reload faster, 20 | // however more will work just fine 21 | .set('workers', 1) 22 | .use(cluster.reload()) 23 | .use(cluster.debug()) 24 | .listen(3000); -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/cluster/examples/repl-unix.js: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * Module dependencies. 4 | */ 5 | 6 | var cluster = require('../') 7 | , http = require('http'); 8 | 9 | var server = http.createServer(function(req, res){ 10 | console.log('%s %s', req.method, req.url); 11 | var body = 'Hello World'; 12 | res.writeHead(200, { 'Content-Length': body.length }); 13 | res.end(body); 14 | }); 15 | 16 | // custom repl function 17 | 18 | cluster.repl.define('echo', function(master, sock, msg){ 19 | sock.write(msg + '\n'); 20 | }, 'echo the given message'); 21 | 22 | // $ telnet /path/to/examples/repl 23 | 24 | cluster(server) 25 | .set('workers', 1) 26 | .use(cluster.logger()) 27 | .use(cluster.repl('/tmp/repl')) 28 | .listen(3000); -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/cluster/examples/repl.js: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * Module dependencies. 4 | */ 5 | 6 | var cluster = require('../') 7 | , http = require('http'); 8 | 9 | var server = http.createServer(function(req, res){ 10 | console.log('%s %s', req.method, req.url); 11 | var body = 'Hello'; 12 | res.writeHead(200, { 'Content-Length': body.length }); 13 | res.end(body); 14 | }); 15 | 16 | // custom repl function 17 | 18 | cluster.repl.define('echo', function(master, sock, msg){ 19 | sock.write(msg + '\n'); 20 | }, 'echo the given message'); 21 | 22 | // $ telnet localhost 8888 23 | cluster(server) 24 | .set('workers', 4) 25 | .use(cluster.logger('logs')) 26 | .use(cluster.stats({ connections: true, requests: true })) 27 | .use(cluster.repl(8889, '127.0.0.1')) 28 | .use(cluster.debug()) 29 | .listen(3002); 30 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/cluster/examples/single.js: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * Module dependencies. 4 | */ 5 | 6 | var cluster = require('../') 7 | , http = require('http'); 8 | 9 | var body = 'Hello World' 10 | , len = body.length; 11 | var server = http.createServer(function(req, res){ 12 | res.writeHead(200, { 'Content-Length': len }); 13 | res.end(body); 14 | }); 15 | 16 | cluster(server) 17 | .set('working directory', '/') 18 | .set('workers', 1) 19 | .listen(3000); -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/cluster/examples/standalone.js: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * Module dependencies. 4 | */ 5 | 6 | var cluster = require('../'); 7 | 8 | var proc = cluster() 9 | .set('workers', 4) 10 | .use(cluster.debug()) 11 | .start(); 12 | 13 | if (proc.isWorker) { 14 | var id = process.env.CLUSTER_WORKER; 15 | console.log(' worker #%d started', id); 16 | setInterval(function(){ 17 | console.log(' processing job from worker #%d', id); 18 | }, 3000); 19 | } -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/cluster/examples/tcp.js: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * Module dependencies. 4 | */ 5 | 6 | var cluster = require('../') 7 | , net = require('net'); 8 | 9 | var server = net.createServer(function(sock){ 10 | sock.write('echo server of amazingness\n'); 11 | sock.pipe(sock); 12 | }); 13 | 14 | cluster(server) 15 | .set('workers', 4) 16 | .use(cluster.debug()) 17 | .use(cluster.stats()) 18 | .use(cluster.repl(8888)) 19 | .listen(3000); 20 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/cluster/examples/unix.js: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * Module dependencies. 4 | */ 5 | 6 | var cluster = require('../') 7 | , http = require('http'); 8 | 9 | var body = 'Hello World' 10 | , len = body.length; 11 | var server = http.createServer(function(req, res){ 12 | res.writeHead(200, { 'Content-Length': len }); 13 | res.end(body); 14 | }); 15 | 16 | cluster(server) 17 | .set('working directory', '/') 18 | .listen('/tmp/server.sock'); -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/cluster/examples/vhost.js: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * Module dependencies. 4 | */ 5 | 6 | var cluster = require('../') 7 | , connect = require('connect'); 8 | 9 | // setup: 10 | // $ npm install connect 11 | // $ edit /etc/hosts 12 | 13 | var server = connect(); 14 | 15 | var foo = connect().use(function(req, res){ 16 | var body = 'Hello from foo.com'; 17 | res.writeHead(200, { 'Content-Length': body.length }); 18 | res.end(body); 19 | }); 20 | 21 | var bar = connect().use(function(req, res){ 22 | var body = 'Hello from bar.com'; 23 | res.writeHead(200, { 'Content-Length': body.length }); 24 | res.end(body); 25 | }); 26 | 27 | server.use(connect.vhost('foo.com', foo)); 28 | server.use(connect.vhost('bar.com', bar)); 29 | 30 | cluster(server) 31 | .set('workers', 4) 32 | .use(cluster.debug()) 33 | .listen(3000); -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/cluster/index.js: -------------------------------------------------------------------------------- 1 | 2 | module.exports = require('./lib/cluster'); -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/cluster/lib/cluster.js: -------------------------------------------------------------------------------- 1 | 2 | /*! 3 | * Cluster 4 | * Copyright(c) 2011 LearnBoost 5 | * MIT Licensed 6 | */ 7 | 8 | /** 9 | * Module dependencies. 10 | */ 11 | 12 | var Master = require('./master') 13 | , fs = require('fs'); 14 | 15 | /** 16 | * Export `start` as the module. 17 | */ 18 | 19 | exports = module.exports = start; 20 | 21 | /** 22 | * Library version. 23 | */ 24 | 25 | exports.version = '0.7.7'; 26 | 27 | /** 28 | * Expose utils. 29 | */ 30 | 31 | exports.utils = require('./utils'); 32 | 33 | /** 34 | * Start a new `Master` with the given `server`. 35 | * 36 | * @param {http.Server} server 37 | * @return {Master} 38 | * @api public 39 | */ 40 | 41 | function start(server) { 42 | return new Master(server); 43 | } 44 | 45 | /** 46 | * Expose middleware via lazy-requires. 47 | */ 48 | 49 | fs.readdirSync(__dirname + '/plugins').forEach(function(plugin){ 50 | plugin = plugin.replace('.js', ''); 51 | exports.__defineGetter__(plugin, function(){ 52 | return require('./plugins/' + plugin); 53 | }); 54 | }); -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/cluster/lib/mixins/receiver.js: -------------------------------------------------------------------------------- 1 | 2 | /*! 3 | * Cluster - receiver mixin 4 | * Copyright(c) 2011 LearnBoost 5 | * MIT Licensed 6 | */ 7 | 8 | module.exports = function(obj){ 9 | 10 | /** 11 | * Initialize buffer. 12 | */ 13 | 14 | obj._buf = ''; 15 | 16 | /** 17 | * Frame incoming command, buffering the given `chunk` 18 | * until a frame is complete. Frames are delimited by a 19 | * line feed. 20 | * 21 | * @param {String} chunk 22 | * @api private 23 | */ 24 | 25 | obj.frame = function(chunk){ 26 | for (var i = 0, len = chunk.length; i < len; ++i) { 27 | if ('\n' == chunk[i]) { 28 | var worker 29 | , obj = JSON.parse(this._buf); 30 | this._buf = ''; 31 | if ('number' == typeof obj.id) worker = this.children[obj.id]; 32 | this.invoke(obj.method, obj.args, worker); 33 | } else { 34 | this._buf += chunk[i]; 35 | } 36 | } 37 | }; 38 | 39 | /** 40 | * Invoke `method` with the given `args`. 41 | * 42 | * @param {String} method 43 | * @param {Mixed} args 44 | * @param {Worker} worker 45 | * @api private 46 | */ 47 | 48 | obj.invoke = function(method, args, worker){ 49 | if (!method) return; 50 | if (!Array.isArray(args)) args = [args]; 51 | if (worker) args.unshift(worker); 52 | if (!this[method]) throw new Error('method ' + method + '() does not exist'); 53 | this[method].apply(this, args); 54 | }; 55 | }; -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/cluster/test/common.js: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * Module dependencies. 4 | */ 5 | 6 | var http = require('http') 7 | , should = require('should'); 8 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/cluster/test/logs/.gitignore: -------------------------------------------------------------------------------- 1 | *.log -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/cluster/test/logs/nested/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saccadic/Unity-VNC-Client/ede140e188b9317416db3c2b0decc87dc921538f/Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/cluster/test/logs/nested/.gitignore -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/cluster/test/pids/.gitignore: -------------------------------------------------------------------------------- 1 | *.pid 2 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/cluster/test/run: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | rm -f test/pids/*.pid 4 | rm -f test/*.sock test/support/*.sock 5 | rm -f test/logs/*.log 6 | rm -f test/logs/nested/*.log 7 | 8 | clean() { 9 | killall -KILL node &> /dev/null 10 | } 11 | 12 | clean 13 | echo 14 | 15 | files=test/test.*.js 16 | for file in $files; do 17 | printf "\033[90m ${file#test/}\033[0m " 18 | node $@ $file && echo "\033[36m✓\033[0m" 19 | test $? -eq 0 || exit $? 20 | done 21 | echo -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/cluster/test/support/all.js: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * Module dependencies. 4 | */ 5 | 6 | var cluster = require('../../') 7 | , should = require('should') 8 | , http = require('http') 9 | , fs = require('fs'); 10 | 11 | require('../common'); 12 | 13 | var server = http.createServer(function(req, res){ 14 | setTimeout(function(){ 15 | res.writeHead(200); 16 | res.end('Hello World'); 17 | }, 1000); 18 | }); 19 | 20 | cluster = cluster(server) 21 | .set('workers', 6) 22 | .use(cluster.pidfiles()) 23 | .use(cluster.cli()) 24 | .use(cluster.logger(__dirname + '/../logs')) 25 | .use(cluster.repl(8888, 'localhost')) 26 | .use(cluster.stats()) 27 | .listen(3000); 28 | 29 | cluster.on('listening', function(){ 30 | console.log('listening'); 31 | }); -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/cluster/test/support/exported.js: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * Module dependencies. 4 | */ 5 | 6 | var http = require('http'); 7 | 8 | module.exports = http.createServer(function(req, res){ 9 | res.writeHead(200); 10 | res.end('Hello World'); 11 | }); -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/cluster/test/support/logs/.gitignore: -------------------------------------------------------------------------------- 1 | *.log 2 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/cluster/test/support/pids/.gitignore: -------------------------------------------------------------------------------- 1 | *.pid 2 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/cluster/test/support/server.js: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * Module dependencies. 4 | */ 5 | 6 | var cluster = require('../../') 7 | , should = require('should') 8 | , http = require('http') 9 | , fs = require('fs'); 10 | 11 | require('../common'); 12 | 13 | var server = http.createServer(function(req, res){ 14 | setTimeout(function(){ 15 | res.writeHead(200); 16 | res.end('Hello World'); 17 | }, 1000); 18 | }); 19 | 20 | cluster = cluster(server) 21 | .set('workers', 2) 22 | .listen(3000); 23 | 24 | cluster.on('listening', function(){ 25 | console.log('listening'); 26 | }); -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/cluster/test/support/standalone.js: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/cluster/test/test.basic.js: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * Module dependencies. 4 | */ 5 | 6 | var cluster = require('../') 7 | , http = require('http'); 8 | 9 | require('./common'); 10 | 11 | var server = http.createServer(function(req, res){ 12 | res.writeHead(200); 13 | res.end('Hello World'); 14 | }); 15 | 16 | cluster = cluster(server) 17 | .listen(3000); 18 | 19 | cluster.on('listening', function(){ 20 | process.cwd().should.include.string('cluster/test'); 21 | http.get({ host: 'localhost', port: 3000 }, function(res){ 22 | res.on('data', function(chunk){ 23 | chunk.toString().should.equal('Hello World'); 24 | }); 25 | res.on('end', function(){ 26 | cluster.close(); 27 | }); 28 | }); 29 | }); -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/cluster/test/test.cli-status.js: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * Module dependencies. 4 | */ 5 | 6 | var cluster = require('../') 7 | , http = require('http') 8 | , fs = require('fs') 9 | , Master = require('../lib/master.js'); 10 | 11 | require('./common'); 12 | 13 | var server = http.createServer(function(req, res){ 14 | setTimeout(function(){ 15 | res.writeHead(200); 16 | res.end('Hello World'); 17 | }, 1000); 18 | }); 19 | 20 | cluster = cluster(server) 21 | .set('workers', 1) 22 | .use(cluster.pidfiles()) 23 | .use(cluster.cli()) 24 | .in('development').listen(3000) 25 | .in('staging').listen(3010); 26 | 27 | 28 | cluster.on('listening', function(){ 29 | cluster.preventDefault = true; 30 | cluster.start().should.be.an.instanceof(Master); 31 | cluster.close(); 32 | }); 33 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/cluster/test/test.dns.js: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * Module dependencies. 4 | */ 5 | 6 | var cluster = require('../') 7 | , http = require('http'); 8 | 9 | require('./common'); 10 | 11 | var server = http.createServer(function(req, res){ 12 | res.writeHead(200); 13 | res.end('Hello World'); 14 | }); 15 | 16 | cluster = cluster(server) 17 | .listen(3000, 'localhost'); 18 | 19 | cluster.on('listening', function(){ 20 | process.cwd().should.include.string('cluster/test'); 21 | http.get({ host: 'localhost', port: 3000 }, function(res){ 22 | res.on('data', function(chunk){ 23 | chunk.toString().should.equal('Hello World'); 24 | }); 25 | res.on('end', function(){ 26 | cluster.close(); 27 | }); 28 | }); 29 | }); -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/cluster/test/test.env.js: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * Module dependencies. 4 | */ 5 | 6 | var cluster = require('../') 7 | , assert = require('assert') 8 | , http = require('http'); 9 | 10 | require('./common'); 11 | 12 | var server = http.createServer(function(req, res){ 13 | res.writeHead(200); 14 | res.end('Hello World'); 15 | }); 16 | 17 | cluster = cluster(server) 18 | .listen(3000); 19 | 20 | if (cluster.isMaster) { 21 | process.env.FOO = 'bar'; 22 | assert.ok(!process.env.CLUSTER_WORKER); 23 | } else { 24 | process.env.FOO.should.equal('bar'); 25 | assert.ok(process.env.CLUSTER_WORKER); 26 | } 27 | 28 | cluster.on('listening', function(){ 29 | cluster.close(); 30 | }); -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/cluster/test/test.ephemeral.js: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * Module dependencies. 4 | */ 5 | 6 | var cluster = require('../') 7 | , http = require('http') 8 | , app = http.createServer(); 9 | 10 | cluster(app) 11 | .set('workers', 2) 12 | .listen(0) 13 | .on('listening', process.exit); 14 | 15 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/cluster/test/test.filename.js: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * Module dependencies. 4 | */ 5 | 6 | var cluster = require('../') 7 | , http = require('http'); 8 | 9 | require('./common'); 10 | 11 | 12 | cluster = cluster('support/exported') 13 | .set('workers', 4) 14 | .listen(3000); 15 | 16 | cluster.on('listening', function(){ 17 | process.cwd().should.include.string('cluster/test'); 18 | http.get({ host: 'localhost', port: 3000 }, function(res){ 19 | res.on('data', function(chunk){ 20 | chunk.toString().should.equal('Hello World'); 21 | }); 22 | res.on('end', function(){ 23 | cluster.close(); 24 | }); 25 | }); 26 | }); -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/cluster/test/test.logger.custom-path.js: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * Module dependencies. 4 | */ 5 | 6 | var cluster = require('../') 7 | , http = require('http') 8 | , fs = require('fs'); 9 | 10 | require('./common'); 11 | 12 | var server = http.createServer(function(req, res){ 13 | console.log('%s %s', req.method, req.url); 14 | res.writeHead(200); 15 | res.end('Hello World'); 16 | }); 17 | 18 | cluster = cluster(server) 19 | .set('workers', 1) 20 | .use(cluster.logger(__dirname + '/logs/nested')) 21 | .listen(3000); 22 | 23 | cluster.on('listening', function(){ 24 | http.get({ host: 'localhost', port: 3000 }, function(res){ 25 | res.on('end', function(){ 26 | var files = fs.readdirSync(__dirname + '/logs/nested'); 27 | files.should.have.length(4); 28 | files.should.contain('master.log'); 29 | files.should.contain('workers.access.log'); 30 | files.should.contain('workers.error.log'); 31 | cluster.close(); 32 | }); 33 | }); 34 | }); -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/cluster/test/test.logger.js: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * Module dependencies. 4 | */ 5 | 6 | var cluster = require('../') 7 | , http = require('http') 8 | , fs = require('fs'); 9 | 10 | require('./common'); 11 | 12 | var server = http.createServer(function(req, res){ 13 | console.log('%s %s', req.method, req.url); 14 | res.writeHead(200); 15 | res.end('Hello World'); 16 | }); 17 | 18 | cluster = cluster(server) 19 | .set('workers', 1) 20 | .use(cluster.logger()) 21 | .listen(3000); 22 | 23 | cluster.on('listening', function(){ 24 | http.get({ host: 'localhost', port: 3000 }, function(res){ 25 | res.on('end', function(){ 26 | var files = fs.readdirSync(__dirname + '/logs'); 27 | files.should.have.length(5); 28 | files.should.contain('master.log'); 29 | files.should.contain('workers.access.log'); 30 | files.should.contain('workers.error.log'); 31 | fs.readFile(__dirname + '/logs/workers.access.log', 'ascii', function(err, str){ 32 | str.should.match(/^GET \//); 33 | cluster.close(); 34 | }); 35 | }); 36 | }); 37 | }); -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/cluster/test/test.pidfiles.js: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * Module dependencies. 4 | */ 5 | 6 | var cluster = require('../') 7 | , http = require('http') 8 | , fs = require('fs'); 9 | 10 | require('./common'); 11 | 12 | var server = http.createServer(function(req, res){ 13 | setTimeout(function(){ 14 | res.writeHead(200); 15 | res.end('Hello World'); 16 | }, 1000); 17 | }); 18 | 19 | cluster = cluster(server) 20 | .set('workers', 2) 21 | .use(cluster.pidfiles()) 22 | .listen(3000); 23 | 24 | function checkFile(name) { 25 | var pid = fs.readFileSync(__dirname + '/pids/' + name, 'ascii'); 26 | (!isNaN(parseInt(pid, 10))).should.be.true; 27 | } 28 | 29 | cluster.on('listening', function(){ 30 | fs.readdir(__dirname + '/pids', function(err, files){ 31 | // TODO: test master pid 32 | files.should.contain('worker.0.pid'); 33 | files.should.contain('worker.1.pid'); 34 | checkFile('worker.0.pid'); 35 | checkFile('worker.1.pid'); 36 | cluster.close(); 37 | }); 38 | }); -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/cluster/test/test.restart-env.js: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * Module dependencies. 4 | */ 5 | 6 | var cluster = require('../') 7 | , http = require('http') 8 | , assert = require('assert'); 9 | 10 | require('./common'); 11 | 12 | var server = http.createServer(function(req, res){ 13 | res.writeHead(200); 14 | res.end('Hello World'); 15 | }); 16 | 17 | cluster = cluster(server) 18 | .listen(3001); 19 | 20 | if (cluster.isChild) { 21 | process.cwd().should.include.string('cluster/test'); 22 | cluster.on('listening', function(){ 23 | assert.equal(require.paths.join(':'), process.env.REQUIRE_PATHS); 24 | assert.equal(process.env.FOO, 'bar'); 25 | cluster.close(); 26 | }); 27 | } else { 28 | process.env.REQUIRE_PATHS = require.paths.join(':'); 29 | process.env.FOO = 'bar'; 30 | cluster.on('listening', function(){ 31 | cluster.restart(); 32 | }); 33 | } 34 | 35 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/cluster/test/test.restart.js: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * Module dependencies. 4 | */ 5 | 6 | var cluster = require('../') 7 | , http = require('http') 8 | , fs = require('fs'); 9 | 10 | require('./common'); 11 | 12 | var server = http.createServer(function(req, res){ 13 | setTimeout(function(){ 14 | res.writeHead(200); 15 | res.end('Hello World'); 16 | }, 1000); 17 | }); 18 | 19 | cluster = cluster(server) 20 | .set('workers', 2) 21 | .use(cluster.pidfiles()) 22 | .listen(3002); 23 | 24 | var a, b 25 | , options = { host: 'localhost', port: 3002 }; 26 | 27 | function getPID(name) { 28 | var pid = fs.readFileSync(__dirname + '/pids/' + name, 'ascii'); 29 | return parseInt(pid, 10); 30 | } 31 | 32 | function movePID(name) { 33 | var pid = getPID(name); 34 | fs.writeFileSync(__dirname + '/pids/old.' + name, pid.toString(), 'ascii'); 35 | } 36 | 37 | if (cluster.isChild) { 38 | cluster.on('restart', function(){ 39 | http.get(options, function(res){ 40 | res.statusCode.should.equal(200); 41 | var a = getPID('old.worker.0.pid') 42 | , b = getPID('old.worker.1.pid'); 43 | a.should.not.equal(getPID('worker.0.pid')); 44 | b.should.not.equal(getPID('worker.1.pid')); 45 | cluster.close(); 46 | }); 47 | }); 48 | } else { 49 | var pending = 2; 50 | cluster.on('worker pidfile', function(){ 51 | --pending || (function(){ 52 | movePID('worker.0.pid') 53 | movePID('worker.1.pid'); 54 | 55 | // issue some requests 56 | var n = 20 57 | , pending = n; 58 | while (n--) { 59 | http.get(options, function(res){ 60 | res.statusCode.should.equal(200); 61 | --pending || cluster.restart(); 62 | }); 63 | } 64 | })(); 65 | }); 66 | } -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/cluster/test/test.shutdown-all.js: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * Module dependencies. 4 | */ 5 | 6 | var spawn = require('child_process').spawn 7 | , http = require('http'); 8 | 9 | require('./common'); 10 | 11 | var calls = 0; 12 | 13 | // child process 14 | 15 | var child = spawn('node', [__dirname + '/support/all.js'], { 16 | customFds: [-1, -1, 2] 17 | }); 18 | 19 | // listening 20 | 21 | child.stdout.on('data', function(chunk){ 22 | var options = { host: 'localhost', port: 3000 }; 23 | 24 | http.get(options, function(res){ 25 | ++calls; 26 | res.statusCode.should.equal(200); 27 | child.kill('SIGQUIT'); 28 | }); 29 | 30 | http.get(options, function(res){ 31 | ++calls; 32 | res.statusCode.should.equal(200); 33 | }); 34 | 35 | http.get(options, function(res){ 36 | ++calls; 37 | res.statusCode.should.equal(200); 38 | }); 39 | 40 | http.get(options, function(res){ 41 | ++calls; 42 | res.statusCode.should.equal(200); 43 | }); 44 | }); 45 | 46 | child.on('exit', function(){ 47 | calls.should.equal(4); 48 | }); -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/cluster/test/test.shutdown.js: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * Module dependencies. 4 | */ 5 | 6 | var spawn = require('child_process').spawn 7 | , http = require('http'); 8 | 9 | require('./common'); 10 | 11 | var calls = 0; 12 | 13 | // child process 14 | 15 | var child = spawn('node', [__dirname + '/support/server.js'], { 16 | customFds: [-1, -1, 2] 17 | }); 18 | 19 | // listening 20 | 21 | child.stdout.on('data', function(chunk){ 22 | var options = { host: 'localhost', port: 3000 }; 23 | 24 | http.get(options, function(res){ 25 | ++calls; 26 | res.statusCode.should.equal(200); 27 | child.kill('SIGQUIT'); 28 | }); 29 | 30 | http.get(options, function(res){ 31 | ++calls; 32 | res.statusCode.should.equal(200); 33 | }); 34 | 35 | http.get(options, function(res){ 36 | ++calls; 37 | res.statusCode.should.equal(200); 38 | }); 39 | 40 | http.get(options, function(res){ 41 | ++calls; 42 | res.statusCode.should.equal(200); 43 | }); 44 | }); 45 | 46 | child.on('exit', function(){ 47 | calls.should.equal(4); 48 | }); -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/cluster/test/test.standalone-shutdown.js: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * Module dependencies. 4 | */ 5 | 6 | var cluster = require('../'); 7 | 8 | require('./common'); 9 | 10 | cluster = cluster() 11 | .set('workers', 1) 12 | .start(); 13 | 14 | if (cluster.isWorker) { 15 | setTimeout(function(){ 16 | process.kill(process.env.CLUSTER_MASTER_PID, 'SIGQUIT'); 17 | }, 500); 18 | } -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/cluster/test/test.standalone.file.js: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * Module dependencies. 4 | */ 5 | 6 | var cluster = require('../'); 7 | 8 | cluster = cluster('./support/standalone') 9 | .set('workers', 4) 10 | .start(); 11 | 12 | if (cluster.isMaster) { 13 | setTimeout(function(){ 14 | process.kill(process.pid, 'SIGQUIT'); 15 | }, 500); 16 | } -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/cluster/test/test.standalone.js: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * Module dependencies. 4 | */ 5 | 6 | var cluster = require('../'); 7 | 8 | require('./common'); 9 | 10 | cluster = cluster() 11 | .set('workers', 2) 12 | .start(); 13 | 14 | if (cluster.isWorker) { 15 | setTimeout(process.exit, Math.random() * 300); 16 | } else { 17 | // make sure workers are re-spawned 18 | var n = 12; 19 | cluster.on('worker killed', function(worker){ 20 | --n || process.exit(); 21 | }); 22 | } -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/cluster/test/test.standalone.restart.js: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * Module dependencies. 4 | */ 5 | 6 | var cluster = require('../'); 7 | 8 | require('./common'); 9 | var assert = require('assert'); 10 | 11 | cluster = cluster() 12 | .set('workers', 2) 13 | .set('restart threshold', 0) 14 | .start(); 15 | 16 | if (!cluster.isMaster) return; 17 | var ppid = process.env.CLUSTER_PARENT_PID; 18 | 19 | cluster.on('listening', function(){ 20 | if (ppid) return cluster.close(); 21 | cluster.restart(); 22 | setTimeout(function() { 23 | throw new Error('Failed to kill parent master'); 24 | }, 3000); 25 | }); 26 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/cluster/test/test.worker-kill.js: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * Module dependencies. 4 | */ 5 | 6 | var cluster = require('../') 7 | , http = require('http'); 8 | 9 | require('./common'); 10 | 11 | var server = http.createServer(function(req, res){ 12 | res.writeHead(200); 13 | res.end('Hello World'); 14 | }); 15 | 16 | cluster = cluster(server) 17 | .set('workers', 1) 18 | .listen(3000); 19 | 20 | cluster.on('listening', function(){ 21 | http.get({ host: 'localhost', port: 3000 }, function(res){ 22 | res.statusCode.should.equal(200); 23 | 24 | // kill the worker 25 | var pid = cluster.children[0].proc.pid; 26 | process.kill(pid, 'SIGKILL'); 27 | }); 28 | }); 29 | 30 | cluster.on('worker killed', function(worker){ 31 | worker.id.should.equal(0); 32 | http.get({ host: 'localhost', port: 3000 }, function(res){ 33 | res.statusCode.should.equal(200); 34 | cluster.close(); 35 | }); 36 | }); 37 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/cluster/test/test.worker-quit-keep-alive.js: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * Module dependencies. 4 | */ 5 | 6 | var cluster = require('../') 7 | , http = require('http'); 8 | 9 | require('./common'); 10 | 11 | var server = http.createServer(function(req, res){ 12 | res.writeHead(200); 13 | res.end('Hello World'); 14 | }); 15 | 16 | // request options 17 | 18 | var options = { 19 | host: 'localhost' 20 | , port: 3000 21 | , headers: { Connection: 'keep-alive' } 22 | }; 23 | 24 | // cluster 25 | 26 | cluster = cluster(server) 27 | .set('workers', 1) 28 | .set('timeout', 1000) 29 | .listen(3000); 30 | 31 | cluster.on('listening', function(){ 32 | http.get(options, function(res){ 33 | res.statusCode.should.equal(200); 34 | 35 | // kill the worker 36 | var pid = cluster.children[0].proc.pid; 37 | process.kill(pid, 'SIGQUIT'); 38 | }); 39 | }); 40 | 41 | var timeout; 42 | 43 | cluster.on('worker timeout', function(worker){ 44 | worker.id.should.equal(0); 45 | timeout = true; 46 | }); 47 | 48 | cluster.on('worker connected', function(worker){ 49 | if (timeout) { 50 | worker.id.should.equal(0); 51 | http.get(options, function(res){ 52 | res.statusCode.should.equal(200); 53 | cluster.close(); 54 | }); 55 | } 56 | }); -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/cluster/test/test.worker-quit.js: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * Module dependencies. 4 | */ 5 | 6 | var cluster = require('../') 7 | , http = require('http'); 8 | 9 | require('./common'); 10 | 11 | var server = http.createServer(function(req, res){ 12 | res.writeHead(200); 13 | res.end('Hello World'); 14 | }); 15 | 16 | cluster = cluster(server) 17 | .set('workers', 1) 18 | .listen(3000); 19 | 20 | cluster.on('listening', function(){ 21 | http.get({ host: 'localhost', port: 3000 }, function(res){ 22 | res.statusCode.should.equal(200); 23 | 24 | // kill the worker 25 | var pid = cluster.children[0].proc.pid; 26 | process.kill(pid, 'SIGQUIT'); 27 | }); 28 | }); 29 | 30 | cluster.on('worker killed', function(worker){ 31 | worker.id.should.equal(0); 32 | http.get({ host: 'localhost', port: 3000 }, function(res){ 33 | res.statusCode.should.equal(200); 34 | cluster.close(); 35 | }); 36 | }); 37 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/cluster/test/test.worker-term.js: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * Module dependencies. 4 | */ 5 | 6 | var cluster = require('../') 7 | , http = require('http'); 8 | 9 | require('./common'); 10 | 11 | var server = http.createServer(function(req, res){ 12 | res.writeHead(200); 13 | res.end('Hello World'); 14 | }); 15 | 16 | cluster = cluster(server) 17 | .set('workers', 1) 18 | .listen(3000); 19 | 20 | cluster.on('listening', function(){ 21 | http.get({ host: 'localhost', port: 3000 }, function(res){ 22 | res.statusCode.should.equal(200); 23 | 24 | // kill the worker 25 | var pid = cluster.children[0].proc.pid; 26 | process.kill(pid, 'SIGTERM'); 27 | }); 28 | }); 29 | 30 | cluster.on('worker killed', function(worker){ 31 | worker.id.should.equal(0); 32 | http.get({ host: 'localhost', port: 3000 }, function(res){ 33 | res.statusCode.should.equal(200); 34 | cluster.close(); 35 | }); 36 | }); 37 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/cluster/test/test.working-dir.js: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * Module dependencies. 4 | */ 5 | 6 | var cluster = require('../') 7 | , http = require('http'); 8 | 9 | require('./common'); 10 | 11 | var server = http.createServer(function(req, res){ 12 | res.writeHead(200); 13 | res.end('Hello World'); 14 | }); 15 | 16 | cluster = cluster(server) 17 | .set('working directory', '/') 18 | .listen(3000); 19 | 20 | if (cluster.isWorker) { 21 | process.cwd().should.equal('/'); 22 | } 23 | 24 | cluster.on('listening', function(){ 25 | process.cwd().should.equal('/'); 26 | cluster.close(); 27 | }); -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/msgpack-js/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - 0.11 4 | - 0.10 5 | - 0.8 6 | - 0.6 7 | script: node test.js 8 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/msgpack-js/README.markdown: -------------------------------------------------------------------------------- 1 | # msgpack for JavaScript 2 | 3 | [![node support](https://travis-ci.org/creationix/msgpack-js.png)](https://travis-ci.org/creationix/msgpack-js) 4 | 5 | [![browser support](https://ci.testling.com/creationix/msgpack-js.png)](https://ci.testling.com/creationix/msgpack-js) 6 | 7 | 8 | A handwritten msgpack encoder and decoder for Node.JS and modern browsers. 9 | 10 | The original format can be found at 11 | 12 | 13 | ## Extension 14 | 15 | I've extended the format a little to allow for encoding and decoding of `undefined` and `Buffer` instances. 16 | 17 | This required three new type codes that were previously marked as "reserved". 18 | This change means that using these new types will render your serialized data 19 | incompatible with other messagepack implementations that don't have the same 20 | extension. 21 | 22 | There are two new types for storing node `Buffer` instances. These work just 23 | like "raw 16" and "raw 32" except they are node buffers instead of strings. 24 | 25 | buffer 16 11011000 0xd8 26 | buffer 32 11011001 0xd9 27 | 28 | Also I've added a type for `undefined` that works just like the `null` type. 29 | 30 | undefined 11000100 0xc4 31 | 32 | ## Usage 33 | 34 | ``` javascript 35 | var msgpack = require('msgpack'); 36 | var assert = require('assert'); 37 | 38 | var initial = {Hello: "World"}; 39 | var encoded = msgpack.encode(initial); 40 | var decoded = msgpack.decode(encoded); 41 | 42 | assert.deepEqual(initial, decoded); 43 | ``` 44 | 45 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/msgpack-js/node_modules/bops/copy.js: -------------------------------------------------------------------------------- 1 | module.exports = copy 2 | 3 | function copy(source, target, target_start, source_start, source_end) { 4 | return source.copy(target, target_start, source_start, source_end) 5 | } 6 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/msgpack-js/node_modules/bops/create.js: -------------------------------------------------------------------------------- 1 | module.exports = create 2 | 3 | var Buffer = require('buffer').Buffer 4 | 5 | function create(size) { 6 | return new Buffer(size) 7 | } 8 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/msgpack-js/node_modules/bops/from.js: -------------------------------------------------------------------------------- 1 | var Buffer = require('buffer').Buffer 2 | 3 | module.exports = function(source, encoding) { 4 | return new Buffer(source, encoding) 5 | } 6 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/msgpack-js/node_modules/bops/index.js: -------------------------------------------------------------------------------- 1 | var proto = {} 2 | module.exports = proto 3 | 4 | proto.from = require('./from.js') 5 | proto.to = require('./to.js') 6 | proto.is = require('./is.js') 7 | proto.subarray = require('./subarray.js') 8 | proto.join = require('./join.js') 9 | proto.copy = require('./copy.js') 10 | proto.create = require('./create.js') 11 | 12 | mix(require('./read.js'), proto) 13 | mix(require('./write.js'), proto) 14 | 15 | function mix(from, into) { 16 | for(var key in from) { 17 | into[key] = from[key] 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/msgpack-js/node_modules/bops/is.js: -------------------------------------------------------------------------------- 1 | var Buffer = require('buffer').Buffer 2 | 3 | module.exports = function(buffer) { 4 | return Buffer.isBuffer(buffer); 5 | } 6 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/msgpack-js/node_modules/bops/join.js: -------------------------------------------------------------------------------- 1 | var Buffer = require('buffer').Buffer 2 | 3 | module.exports = function(targets, hint) { 4 | return hint !== undefined ? 5 | Buffer.concat(targets, hint) : 6 | Buffer.concat(targets) 7 | } 8 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/msgpack-js/node_modules/bops/node_modules/base64-js/README.md: -------------------------------------------------------------------------------- 1 | Intro 2 | ===== 3 | 4 | `base64-js` does basic base64 encoding/decoding in pure JS. Many browsers already have this functionality, but it is for text data, not all-purpose binary data. 5 | 6 | Sometimes encoding/decoding binary data in the browser is useful, and that is what this module does. 7 | 8 | API 9 | === 10 | 11 | `base64-js` has two exposed functions, `toByteArray` and `fromByteArray`, which both take a single argument. 12 | 13 | * toByteArray- Takes a base64 string and returns a byte array 14 | * fromByteArray- Takes a byte array and returns a base64 string 15 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/msgpack-js/node_modules/bops/node_modules/base64-js/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": { 3 | "name": "T. Jameson Little", 4 | "email": "t.jameson.little@gmail.com" 5 | }, 6 | "name": "base64-js", 7 | "description": "Base64 encoding/decoding in pure JS", 8 | "version": "0.0.2", 9 | "repository": { 10 | "type": "git", 11 | "url": "git://github.com/beatgammit/deflate-js.git" 12 | }, 13 | "main": "lib/b64.js", 14 | "scripts": { 15 | "test": "cd test; node runner.js; cd -" 16 | }, 17 | "engines": { 18 | "node": ">= 0.4" 19 | }, 20 | "dependencies": {}, 21 | "devDependencies": {}, 22 | "readme": "Intro\n=====\n\n`base64-js` does basic base64 encoding/decoding in pure JS. Many browsers already have this functionality, but it is for text data, not all-purpose binary data.\n\nSometimes encoding/decoding binary data in the browser is useful, and that is what this module does.\n\nAPI\n===\n\n`base64-js` has two exposed functions, `toByteArray` and `fromByteArray`, which both take a single argument.\n\n* toByteArray- Takes a base64 string and returns a byte array\n* fromByteArray- Takes a byte array and returns a base64 string\n", 23 | "readmeFilename": "README.md", 24 | "bugs": { 25 | "url": "https://github.com/beatgammit/deflate-js/issues" 26 | }, 27 | "homepage": "https://github.com/beatgammit/deflate-js", 28 | "_id": "base64-js@0.0.2", 29 | "_shasum": "024f0f72afa25b75f9c0ee73cd4f55ec1bed9784", 30 | "_from": "base64-js@0.0.2", 31 | "_resolved": "https://registry.npmjs.org/base64-js/-/base64-js-0.0.2.tgz" 32 | } 33 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/msgpack-js/node_modules/bops/node_modules/base64-js/test/runner.js: -------------------------------------------------------------------------------- 1 | (function () { 2 | 'use strict'; 3 | 4 | var b64 = require('../lib/b64'), 5 | checks = [ 6 | 'a', 7 | 'aa', 8 | 'aaa', 9 | 'hi', 10 | 'hi!', 11 | 'hi!!', 12 | 'sup', 13 | 'sup?', 14 | 'sup?!' 15 | ], 16 | res; 17 | 18 | res = checks.some(function (check) { 19 | var b64Str, 20 | arr, 21 | arr2, 22 | str, 23 | i, 24 | l; 25 | 26 | arr2 = []; 27 | for (i = 0, l = check.length; i < l; i += 1) { 28 | arr2.push(check.charCodeAt(i)); 29 | } 30 | b64Str = b64.fromByteArray(arr2); 31 | 32 | arr = b64.toByteArray(b64Str); 33 | arr2 = []; 34 | for (i = 0, l = arr.length; i < l; i += 1) { 35 | arr2.push(String.fromCharCode(arr[i])); 36 | } 37 | str = arr2.join(''); 38 | if (check !== str) { 39 | console.log('Fail:', check); 40 | console.log('Base64:', b64Str); 41 | return true; 42 | } 43 | }); 44 | 45 | if (res) { 46 | console.log('Test failed'); 47 | } else { 48 | console.log('All tests passed!'); 49 | } 50 | }()); 51 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/msgpack-js/node_modules/bops/node_modules/to-utf8/README.md: -------------------------------------------------------------------------------- 1 | # to-utf8 2 | 3 | given an integer-indexable input iterable, produce a utf8 string. 4 | 5 | ```javascript 6 | var utf8 = require('to-utf8') 7 | 8 | var buf = new Buffer('淾淾淾 hello world 淾淾 yep ƒuu 淾', 'utf8') 9 | assert.equal(utf8(buf), buf.toString('utf8')) 10 | ``` 11 | 12 | ## api 13 | 14 | #### utf8(iterable[, byteStart][, byteEnd]) -> string 15 | 16 | take an iterable of bytes (`0...0xFF`) and produce an utf8 string. 17 | 18 | # license 19 | 20 | MIT 21 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/msgpack-js/node_modules/bops/node_modules/to-utf8/index.js: -------------------------------------------------------------------------------- 1 | module.exports = to_utf8 2 | 3 | var out = [] 4 | , col = [] 5 | , fcc = String.fromCharCode 6 | , mask = [0x40, 0x20, 0x10, 0x08, 0x04, 0x02, 0x01] 7 | , unmask = [ 8 | 0x00 9 | , 0x01 10 | , 0x02 | 0x01 11 | , 0x04 | 0x02 | 0x01 12 | , 0x08 | 0x04 | 0x02 | 0x01 13 | , 0x10 | 0x08 | 0x04 | 0x02 | 0x01 14 | , 0x20 | 0x10 | 0x08 | 0x04 | 0x02 | 0x01 15 | , 0x40 | 0x20 | 0x10 | 0x08 | 0x04 | 0x02 | 0x01 16 | ] 17 | 18 | function to_utf8(bytes, start, end) { 19 | start = start === undefined ? 0 : start 20 | end = end === undefined ? bytes.length : end 21 | 22 | var idx = 0 23 | , hi = 0x80 24 | , collecting = 0 25 | , pos 26 | , by 27 | 28 | col.length = 29 | out.length = 0 30 | 31 | while(idx < bytes.length) { 32 | by = bytes[idx] 33 | if(!collecting && by & hi) { 34 | pos = find_pad_position(by) 35 | collecting += pos 36 | if(pos < 8) { 37 | col[col.length] = by & unmask[6 - pos] 38 | } 39 | } else if(collecting) { 40 | col[col.length] = by & unmask[6] 41 | --collecting 42 | if(!collecting && col.length) { 43 | out[out.length] = fcc(reduced(col, pos)) 44 | col.length = 0 45 | } 46 | } else { 47 | out[out.length] = fcc(by) 48 | } 49 | ++idx 50 | } 51 | if(col.length && !collecting) { 52 | out[out.length] = fcc(reduced(col, pos)) 53 | col.length = 0 54 | } 55 | return out.join('') 56 | } 57 | 58 | function find_pad_position(byt) { 59 | for(var i = 0; i < 7; ++i) { 60 | if(!(byt & mask[i])) { 61 | break 62 | } 63 | } 64 | return i 65 | } 66 | 67 | function reduced(list) { 68 | var out = 0 69 | for(var i = 0, len = list.length; i < len; ++i) { 70 | out |= list[i] << ((len - i - 1) * 6) 71 | } 72 | return out 73 | } 74 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/msgpack-js/node_modules/bops/node_modules/to-utf8/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "to-utf8", 3 | "version": "0.0.1", 4 | "description": "single-function form of node's Buffer.toString(utf8)", 5 | "main": "index.js", 6 | "scripts": { 7 | "test": "node test.js" 8 | }, 9 | "repository": { 10 | "type": "git", 11 | "url": "git://github.com/chrisdickinson/to-utf8.git" 12 | }, 13 | "keywords": [ 14 | "utf8", 15 | "buffer" 16 | ], 17 | "author": { 18 | "name": "Chris Dickinson", 19 | "email": "chris@neversaw.us" 20 | }, 21 | "license": "MIT", 22 | "devDependencies": { 23 | "tape": "~0.2.2" 24 | }, 25 | "readme": "# to-utf8\n\ngiven an integer-indexable input iterable, produce a utf8 string.\n\n```javascript\n var utf8 = require('to-utf8')\n\n var buf = new Buffer('淾淾淾 hello world 淾淾 yep ƒuu 淾', 'utf8')\n assert.equal(utf8(buf), buf.toString('utf8'))\n```\n\n## api\n\n#### utf8(iterable[, byteStart][, byteEnd]) -> string\n\ntake an iterable of bytes (`0...0xFF`) and produce an utf8 string.\n\n# license\n\nMIT\n", 26 | "readmeFilename": "README.md", 27 | "bugs": { 28 | "url": "https://github.com/chrisdickinson/to-utf8/issues" 29 | }, 30 | "homepage": "https://github.com/chrisdickinson/to-utf8", 31 | "_id": "to-utf8@0.0.1", 32 | "_shasum": "d17aea72ff2fba39b9e43601be7b3ff72e089852", 33 | "_from": "to-utf8@0.0.1", 34 | "_resolved": "https://registry.npmjs.org/to-utf8/-/to-utf8-0.0.1.tgz" 35 | } 36 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/msgpack-js/node_modules/bops/node_modules/to-utf8/test.js: -------------------------------------------------------------------------------- 1 | var test = require('tape') 2 | , toUTF8 = require('./index') 3 | 4 | test('works as expected', function(assert) { 5 | var input = ['11000010', '10100010'].map(function(x) { return parseInt(x, 2) }) 6 | assert.equal(toUTF8(input), '\u00a2') 7 | assert.end() 8 | }) 9 | 10 | test('works the same as buffer.toString(utf8)', function(assert) { 11 | var buf = new Buffer('淾淾淾 hello world 淾淾 yep ƒuu 淾', 'utf8') 12 | assert.equal(toUTF8(buf), buf.toString('utf8')) 13 | assert.end() 14 | }) 15 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/msgpack-js/node_modules/bops/read.js: -------------------------------------------------------------------------------- 1 | var proto = {} 2 | , rex = /read.+/ 3 | , buildFn 4 | 5 | buildFn = function(key) { 6 | var code = '' + 7 | 'return buf.' + key + '(' + ['a', 'b', 'c'].join(',' ) + ')' 8 | 9 | return new Function(['buf', 'a', 'b', 'c'], code) 10 | } 11 | 12 | module.exports = proto 13 | 14 | for(var key in Buffer.prototype) { 15 | if(rex.test(key)) { 16 | proto[key] = buildFn(key) 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/msgpack-js/node_modules/bops/subarray.js: -------------------------------------------------------------------------------- 1 | module.exports = function(source, from, to) { 2 | return arguments.length === 2 ? 3 | source.slice(from) : 4 | source.slice(from, to) 5 | } 6 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/msgpack-js/node_modules/bops/test/copy.js: -------------------------------------------------------------------------------- 1 | var test = require('tape') 2 | , binary = require('../index') 3 | 4 | test('copy works as expected', function(assert) { 5 | var tmp1 = binary.create(16) 6 | , tmp2 = binary.create(16) 7 | 8 | for(var i = 0, len = 16; i < len; ++i) { 9 | binary.writeUInt8(tmp1, Math.random() * 0xFF & 0xFF, i) 10 | binary.writeUInt8(tmp2, Math.random() * 0xFF & 0xFF, i) 11 | } 12 | 13 | binary.copy(tmp1, tmp2) 14 | for(var i = 0, len = 16; i < len; ++i) { 15 | assert.equal(binary.readUInt8(tmp2, i), binary.readUInt8(tmp1, i)) 16 | } 17 | 18 | // overlapping copy 19 | binary.copy(tmp1, tmp1, 2, 0, 6) 20 | 21 | for(var i = 2, len = 8; i < len; ++i) { 22 | assert.equal(binary.readUInt8(tmp1, i), binary.readUInt8(tmp2, i - 2)) 23 | } 24 | assert.end() 25 | }) 26 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/msgpack-js/node_modules/bops/test/create.js: -------------------------------------------------------------------------------- 1 | var test = require('tape') 2 | , binary = require('../index') 3 | 4 | test('create works as expected', function(assert) { 5 | var len = Math.random() * 0xFF & 0xFF 6 | len += 1 7 | assert.equal(binary.create(len).length, len) 8 | assert.end() 9 | }) 10 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/msgpack-js/node_modules/bops/test/from.js: -------------------------------------------------------------------------------- 1 | var test = require('tape') 2 | , binary = require('../index') 3 | 4 | test('from array works', function(assert) { 5 | var arr = [1, 2, 3] 6 | , buf = binary.from(arr) 7 | 8 | assert.equal(buf.length, arr.length) 9 | for(var i = 0, len = arr.length; i < len; ++i) { 10 | assert.equal(binary.readUInt8(buf, i), arr[i]) 11 | } 12 | assert.end() 13 | }) 14 | 15 | test('from utf8 works as expected', function(assert) { 16 | var buf = binary.from('ƒello 淾淾淾 hello world 淾淾 yep ƒuu 淾', 'utf8') 17 | , expect 18 | 19 | expect = [198,146,101,108,108,111,32,230,183,190,230,183,190,230,183,190,32,104,101,108,108,111,32,119,111,114,108,100,32,230,183,190,230,183,190,32,121,101,112,32,198,146,117,117,32,230,183,190] 20 | 21 | assert.equal(buf.length, expect.length) 22 | for(var i = 0, len = buf.length; i < len; ++i) { 23 | assert.equal(binary.readUInt8(buf, i), expect[i]) 24 | } 25 | 26 | assert.end() 27 | }) 28 | 29 | test('from hex works as expected', function(assert) { 30 | var buf = binary.from('68656c6c6f20776f726c64c692000a0809', 'hex') 31 | , expect 32 | 33 | expect = [104, 101, 108, 108, 111, 32, 119, 111, 114, 108, 100, 198, 146, 0, 10, 8, 9] 34 | 35 | assert.equal(buf.length, expect.length) 36 | for(var i = 0, len = buf.length; i < len; ++i) { 37 | assert.equal(binary.readUInt8(buf, i), expect[i]) 38 | } 39 | 40 | assert.end() 41 | }) 42 | 43 | test('from base64 works as expected', function(assert) { 44 | var buf = binary.from('aGVsbG8gd29ybGTGkgAKCAk=', 'base64') 45 | , expect 46 | 47 | expect = [104, 101, 108, 108, 111, 32, 119, 111, 114, 108, 100, 198, 146, 0, 10, 8, 9] 48 | 49 | assert.equal(buf.length, expect.length) 50 | for(var i = 0, len = buf.length; i < len; ++i) { 51 | assert.equal(binary.readUInt8(buf, i), expect[i]) 52 | } 53 | 54 | assert.end() 55 | }) 56 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/msgpack-js/node_modules/bops/test/index.js: -------------------------------------------------------------------------------- 1 | require('./copy') 2 | require('./create') 3 | require('./from') 4 | require('./join') 5 | require('./read') 6 | require('./subarray') 7 | require('./to') 8 | require('./write') 9 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/msgpack-js/node_modules/bops/test/is.js: -------------------------------------------------------------------------------- 1 | var test = require('tape') 2 | , binary = require('../index') 3 | 4 | test('is works', function(assert) { 5 | var yes = binary.from("Hello") 6 | , no = "World" 7 | , never = { weird: true } 8 | , noway = [ 42 ] 9 | 10 | assert.equal(binary.is(yes), true) 11 | assert.equal(binary.is(no), false) 12 | assert.equal(binary.is(never), false) 13 | assert.equal(binary.is(noway), false) 14 | assert.end() 15 | }) 16 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/msgpack-js/node_modules/bops/test/join.js: -------------------------------------------------------------------------------- 1 | var test = require('tape') 2 | , binary = require('../index') 3 | 4 | test('test that join works as expected', function(assert) { 5 | var tmp1 = binary.create(16) 6 | , tmp2 = binary.create(16) 7 | , tmp3 8 | , cur 9 | 10 | for(var i = 0, len = 16; i < len; ++i) { 11 | binary.writeUInt8(tmp1, Math.random() * 0xFF & 0xFF, i) 12 | binary.writeUInt8(tmp2, Math.random() * 0xFF & 0xFF, i) 13 | } 14 | 15 | tmp3 = binary.join([tmp1, tmp2]) 16 | cur = tmp1 17 | 18 | for(var i = 0, j = 0, len = 32; i < len; ++i, ++j) { 19 | if(j !== 0 && j % 16 === 0) { 20 | cur = tmp2 21 | j = 0 22 | } 23 | assert.equal( 24 | binary.readUInt8(tmp3, i) 25 | , binary.readUInt8(cur, j) 26 | ) 27 | } 28 | 29 | assert.end() 30 | }) 31 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/msgpack-js/node_modules/bops/test/read.js: -------------------------------------------------------------------------------- 1 | var test = require('tape') 2 | , binary = require('../index') 3 | 4 | test('read works as expected', function(assert) { 5 | var tests = { 6 | readUInt8: [binary.from([16]), 16] 7 | , readInt8: [binary.from([16]), 16] 8 | , readInt8: [binary.from([0xff]), -1] 9 | , readInt8: [binary.from([0x80]), -128] 10 | , readUInt16LE: [binary.from([0xCF, 0xAF]), 45007] 11 | , readUInt32LE: [binary.from([0xAF, 0, 0, 0xCF]), 3472883887] 12 | , readInt16LE: [binary.from([0xCF, 0xAF]), -20529] 13 | , readInt32LE: [binary.from([0xCF, 0, 0, 0xCF]), -822083377] 14 | , readFloatLE: [binary.from([0xCF, 0xAF, 0xDA, 0x02]), 3.213313024388152e-37] 15 | , readDoubleLE: [binary.from([0xcf, 0xaf, 0xda, 0x02, 0x00, 0x01, 0x2f, 0x44]) 16 | , 285960563508654870000] 17 | , readUInt16BE: [binary.from([0xCF, 0xAF]), 53167] 18 | , readUInt32BE: [binary.from([0xAF, 0, 0, 0xCF]), 2936013007] 19 | , readInt16BE: [binary.from([0xCF, 0xAF]), -12369] 20 | , readInt32BE: [binary.from([0xAF, 0, 0, 0xCF]), -1358954289] 21 | , readFloatBE: [binary.from([0xCF, 0xAF, 0xDA, 0x02]), -5900600320] 22 | , readDoubleBE: [binary.from([0xcf, 0xaf, 0xda, 0x02, 0x00, 0x01, 0x2f, 0x44]), -7.203442384910198e+75] 23 | } 24 | 25 | for(var key in tests) { 26 | var buf = tests[key][0] 27 | , expect = tests[key][1] 28 | 29 | assert.equal(binary[key](buf, 0), expect) 30 | } 31 | assert.end() 32 | }) 33 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/msgpack-js/node_modules/bops/test/subarray.js: -------------------------------------------------------------------------------- 1 | var test = require('tape') 2 | , binary = require('../index') 3 | 4 | test('subarray works as expected', function(assert) { 5 | var tmp1 = binary.create(16) 6 | , tmp2 7 | 8 | for(var i = 0, len = 16; i < len; ++i) { 9 | binary.writeUInt8(tmp1, Math.random() * 0xFF & 0xFF, i) 10 | } 11 | 12 | tmp2 = binary.subarray(tmp1, 4) 13 | binary.writeUInt8(tmp2, 255, 0) 14 | 15 | assert.equal(binary.readUInt8(tmp1, 4), 255) 16 | assert.end() 17 | }) 18 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/msgpack-js/node_modules/bops/test/to.js: -------------------------------------------------------------------------------- 1 | var test = require('tape') 2 | , binary = require('../index') 3 | 4 | test('to utf8 works as expected', function(assert) { 5 | var buf = binary.from([198,146,101,108,108,111,32,230,183,190,230,183,190,230,183,190,32,104,101,108,108,111,32,119,111,114,108,100,32,230,183,190,230,183,190,32,121,101,112,32,198,146,117,117,32,230,183,190]) 6 | , expect = 'ƒello 淾淾淾 hello world 淾淾 yep ƒuu 淾' 7 | 8 | assert.equal(expect, binary.to(buf, 'utf8')) 9 | assert.end() 10 | }) 11 | 12 | test('from hex works as expected', function(assert) { 13 | var buf = binary.from([104, 101, 108, 108, 111, 32, 119, 111, 114, 108, 100, 198, 146, 0, 10, 8, 9]) 14 | , expect = '68656c6c6f20776f726c64c692000a0809' 15 | 16 | assert.equal(binary.to(buf, 'hex'), expect) 17 | assert.end() 18 | }) 19 | 20 | test('from base64 works as expected', function(assert) { 21 | var buf = binary.from([104, 101, 108, 108, 111, 32, 119, 111, 114, 108, 100, 198, 146, 0, 10, 8, 9]) 22 | , expect = 'aGVsbG8gd29ybGTGkgAKCAk=' 23 | 24 | assert.equal(binary.to(buf, 'base64'), expect) 25 | assert.end() 26 | }) 27 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/msgpack-js/node_modules/bops/test/write.js: -------------------------------------------------------------------------------- 1 | var test = require('tape') 2 | , binary = require('../index') 3 | 4 | test('write works as expected', function(assert) { 5 | var tests = { 6 | writeUInt8: [binary.from([16]), 16] 7 | , writeInt8: [binary.from([16]), 16] 8 | , writeInt8: [binary.from([0xff]), -1] 9 | , writeInt8: [binary.from([0x80]), -128] 10 | , writeUInt16LE: [binary.from([0xCF, 0xAF]), 45007] 11 | , writeUInt32LE: [binary.from([0xAF, 0, 0, 0xCF]), 3472883887] 12 | , writeInt16LE: [binary.from([0xCF, 0xAF]), -20529] 13 | , writeInt32LE: [binary.from([0xCF, 0, 0, 0xCF]), -822083377] 14 | , writeFloatLE: [binary.from([0xCF, 0xAF, 0xDA, 0x02]), 3.213313024388152e-37] 15 | , writeDoubleLE: [binary.from([0xcf, 0xaf, 0xda, 0x02, 0x00, 0x01, 0x2f, 0x44]) 16 | , 285960563508654870000] 17 | , writeUInt16BE: [binary.from([0xCF, 0xAF]), 53167] 18 | , writeUInt32BE: [binary.from([0xAF, 0, 0, 0xCF]), 2936013007] 19 | , writeInt16BE: [binary.from([0xCF, 0xAF]), -12369] 20 | , writeInt32BE: [binary.from([0xAF, 0, 0, 0xCF]), -1358954289] 21 | , writeFloatBE: [binary.from([0xCF, 0xAF, 0xDA, 0x02]), -5900600320] 22 | , writeDoubleBE: [binary.from([0xcf, 0xaf, 0xda, 0x02, 0x00, 0x01, 0x2f, 0x44]), -7.203442384910198e+75] 23 | } 24 | 25 | for(var key in tests) { 26 | var expect = tests[key][0] 27 | , value = tests[key][1] 28 | , buf = binary.create(expect.length) 29 | 30 | binary[key](buf, value, 0) 31 | for(var i = 0, len = expect.length; i < len; ++i) { 32 | assert.equal( 33 | binary.readUInt8(buf, i) 34 | , binary.readUInt8(expect, i) 35 | ) 36 | } 37 | } 38 | assert.end() 39 | }) 40 | 41 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/msgpack-js/node_modules/bops/to.js: -------------------------------------------------------------------------------- 1 | module.exports = function(source, encoding) { 2 | return source.toString(encoding) 3 | } 4 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/msgpack-js/node_modules/bops/typedarray/copy.js: -------------------------------------------------------------------------------- 1 | module.exports = copy 2 | 3 | var slice = [].slice 4 | 5 | function copy(source, target, target_start, source_start, source_end) { 6 | target_start = arguments.length < 3 ? 0 : target_start 7 | source_start = arguments.length < 4 ? 0 : source_start 8 | source_end = arguments.length < 5 ? source.length : source_end 9 | 10 | if(source_end === source_start) { 11 | return 12 | } 13 | 14 | if(target.length === 0 || source.length === 0) { 15 | return 16 | } 17 | 18 | if(source_end > source.length) { 19 | source_end = source.length 20 | } 21 | 22 | if(target.length - target_start < source_end - source_start) { 23 | source_end = target.length - target_start + source_start 24 | } 25 | 26 | if(source.buffer !== target.buffer) { 27 | return fast_copy(source, target, target_start, source_start, source_end) 28 | } 29 | return slow_copy(source, target, target_start, source_start, source_end) 30 | } 31 | 32 | function fast_copy(source, target, target_start, source_start, source_end) { 33 | var len = (source_end - source_start) + target_start 34 | 35 | for(var i = target_start, j = source_start; 36 | i < len; 37 | ++i, 38 | ++j) { 39 | target[i] = source[j] 40 | } 41 | } 42 | 43 | function slow_copy(from, to, j, i, jend) { 44 | // the buffers could overlap. 45 | var iend = jend + i 46 | , tmp = new Uint8Array(slice.call(from, i, iend)) 47 | , x = 0 48 | 49 | for(; i < iend; ++i, ++x) { 50 | to[j++] = tmp[x] 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/msgpack-js/node_modules/bops/typedarray/create.js: -------------------------------------------------------------------------------- 1 | module.exports = function(size) { 2 | return new Uint8Array(size) 3 | } 4 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/msgpack-js/node_modules/bops/typedarray/from.js: -------------------------------------------------------------------------------- 1 | module.exports = from 2 | 3 | var base64 = require('base64-js') 4 | 5 | var decoders = { 6 | hex: from_hex 7 | , utf8: from_utf 8 | , base64: from_base64 9 | } 10 | 11 | function from(source, encoding) { 12 | if(Array.isArray(source)) { 13 | return new Uint8Array(source) 14 | } 15 | 16 | return decoders[encoding || 'utf8'](source) 17 | } 18 | 19 | function from_hex(str) { 20 | var size = str.length / 2 21 | , buf = new Uint8Array(size) 22 | , character = '' 23 | 24 | for(var i = 0, len = str.length; i < len; ++i) { 25 | character += str.charAt(i) 26 | 27 | if(i > 0 && (i % 2) === 1) { 28 | buf[i>>>1] = parseInt(character, 16) 29 | character = '' 30 | } 31 | } 32 | 33 | return buf 34 | } 35 | 36 | function from_utf(str) { 37 | var bytes = [] 38 | , tmp 39 | , ch 40 | 41 | for(var i = 0, len = str.length; i < len; ++i) { 42 | ch = str.charCodeAt(i) 43 | if(ch & 0x80) { 44 | tmp = encodeURIComponent(str.charAt(i)).substr(1).split('%') 45 | for(var j = 0, jlen = tmp.length; j < jlen; ++j) { 46 | bytes[bytes.length] = parseInt(tmp[j], 16) 47 | } 48 | } else { 49 | bytes[bytes.length] = ch 50 | } 51 | } 52 | 53 | return new Uint8Array(bytes) 54 | } 55 | 56 | function from_base64(str) { 57 | return new Uint8Array(base64.toByteArray(str)) 58 | } 59 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/msgpack-js/node_modules/bops/typedarray/is.js: -------------------------------------------------------------------------------- 1 | 2 | module.exports = function(buffer) { 3 | return buffer instanceof Uint8Array; 4 | } 5 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/msgpack-js/node_modules/bops/typedarray/join.js: -------------------------------------------------------------------------------- 1 | module.exports = join 2 | 3 | function join(targets, hint) { 4 | if(!targets.length) { 5 | return new Uint8Array(0) 6 | } 7 | 8 | var len = hint !== undefined ? hint : get_length(targets) 9 | , out = new Uint8Array(len) 10 | , cur = targets[0] 11 | , curlen = cur.length 12 | , curidx = 0 13 | , curoff = 0 14 | , i = 0 15 | 16 | while(i < len) { 17 | if(curoff === curlen) { 18 | curoff = 0 19 | ++curidx 20 | cur = targets[curidx] 21 | curlen = cur && cur.length 22 | continue 23 | } 24 | out[i++] = cur[curoff++] 25 | } 26 | 27 | return out 28 | } 29 | 30 | function get_length(targets) { 31 | var size = 0 32 | for(var i = 0, len = targets.length; i < len; ++i) { 33 | size += targets[i].byteLength 34 | } 35 | return size 36 | } 37 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/msgpack-js/node_modules/bops/typedarray/mapped.js: -------------------------------------------------------------------------------- 1 | var proto 2 | , map 3 | 4 | module.exports = proto = {} 5 | 6 | map = typeof WeakMap === 'undefined' ? null : new WeakMap 7 | 8 | proto.get = !map ? no_weakmap_get : get 9 | 10 | function no_weakmap_get(target) { 11 | return new DataView(target.buffer, 0) 12 | } 13 | 14 | function get(target) { 15 | var out = map.get(target.buffer) 16 | if(!out) { 17 | map.set(target.buffer, out = new DataView(target.buffer, 0)) 18 | } 19 | return out 20 | } 21 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/msgpack-js/node_modules/bops/typedarray/subarray.js: -------------------------------------------------------------------------------- 1 | module.exports = subarray 2 | 3 | function subarray(buf, from, to) { 4 | return buf.subarray(from || 0, to || buf.length) 5 | } 6 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/msgpack-js/node_modules/bops/typedarray/to.js: -------------------------------------------------------------------------------- 1 | module.exports = to 2 | 3 | var base64 = require('base64-js') 4 | , toutf8 = require('to-utf8') 5 | 6 | var encoders = { 7 | hex: to_hex 8 | , utf8: to_utf 9 | , base64: to_base64 10 | } 11 | 12 | function to(buf, encoding) { 13 | return encoders[encoding || 'utf8'](buf) 14 | } 15 | 16 | function to_hex(buf) { 17 | var str = '' 18 | , byt 19 | 20 | for(var i = 0, len = buf.length; i < len; ++i) { 21 | byt = buf[i] 22 | str += ((byt & 0xF0) >>> 4).toString(16) 23 | str += (byt & 0x0F).toString(16) 24 | } 25 | 26 | return str 27 | } 28 | 29 | function to_utf(buf) { 30 | return toutf8(buf) 31 | } 32 | 33 | function to_base64(buf) { 34 | return base64.fromByteArray(buf) 35 | } 36 | 37 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/msgpack-js/node_modules/bops/write.js: -------------------------------------------------------------------------------- 1 | var Buffer = require('buffer').Buffer 2 | 3 | var proto = {} 4 | , rex = /write.+/ 5 | , buildFn 6 | 7 | buildFn = function(key) { 8 | var code = '' + 9 | 'return buf.' + key + '(' + ['a', 'b', 'c'].join(',' ) + ')' 10 | 11 | return new Function(['buf', 'a', 'b', 'c'], code) 12 | } 13 | 14 | module.exports = proto 15 | 16 | for(var key in Buffer.prototype) { 17 | if(rex.test(key)) { 18 | proto[key] = buildFn(key) 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/node-image-to-buffer/LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2014 Savant_Cat 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | 23 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/node-image-to-buffer/binding.gyp: -------------------------------------------------------------------------------- 1 | { 2 | 'targets': [ 3 | { 4 | 'target_name' : 'NodeImageToBuffer', 5 | 'sources' : [ 6 | './src/main.cc', 7 | './src/PngEncoder.h', 8 | './src/jpegEncoder.h', 9 | ], 10 | 'Libraries' : [ 11 | '-l<./src/lib/x86/libpng16.lib>', 12 | '-l<./src/lib/x86/zlib.lib>', 13 | '-l<./src/lib/x86/jpeg.lib>', 14 | ], 15 | }, 16 | ], 17 | } -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/node-image-to-buffer/build/Release/Win32/NodeImageGenerator.exp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saccadic/Unity-VNC-Client/ede140e188b9317416db3c2b0decc87dc921538f/Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/node-image-to-buffer/build/Release/Win32/NodeImageGenerator.exp -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/node-image-to-buffer/build/Release/Win32/NodeImageGenerator.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saccadic/Unity-VNC-Client/ede140e188b9317416db3c2b0decc87dc921538f/Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/node-image-to-buffer/build/Release/Win32/NodeImageGenerator.lib -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/node-image-to-buffer/build/Release/Win32/NodeImageGenerator.node: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saccadic/Unity-VNC-Client/ede140e188b9317416db3c2b0decc87dc921538f/Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/node-image-to-buffer/build/Release/Win32/NodeImageGenerator.node -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/node-image-to-buffer/build/Release/x64/NodeImageGenerator.exp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saccadic/Unity-VNC-Client/ede140e188b9317416db3c2b0decc87dc921538f/Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/node-image-to-buffer/build/Release/x64/NodeImageGenerator.exp -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/node-image-to-buffer/build/Release/x64/NodeImageGenerator.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saccadic/Unity-VNC-Client/ede140e188b9317416db3c2b0decc87dc921538f/Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/node-image-to-buffer/build/Release/x64/NodeImageGenerator.lib -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/node-image-to-buffer/build/Release/x64/NodeImageGenerator.node: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saccadic/Unity-VNC-Client/ede140e188b9317416db3c2b0decc87dc921538f/Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/node-image-to-buffer/build/Release/x64/NodeImageGenerator.node -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/node-image-to-buffer/build/Release/x64/NodeImageGenerator.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saccadic/Unity-VNC-Client/ede140e188b9317416db3c2b0decc87dc921538f/Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/node-image-to-buffer/build/Release/x64/NodeImageGenerator.pdb -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/node-image-to-buffer/build/binding.sdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saccadic/Unity-VNC-Client/ede140e188b9317416db3c2b0decc87dc921538f/Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/node-image-to-buffer/build/binding.sdf -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/node-image-to-buffer/build/binding.sln: -------------------------------------------------------------------------------- 1 | Microsoft Visual Studio Solution File, Format Version 12.00 2 | # Visual Studio 2013 3 | VisualStudioVersion = 12.0.30723.0 4 | MinimumVisualStudioVersion = 10.0.40219.1 5 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "png", "png.vcxproj", "{2F539D87-62D4-FAD8-EFDE-CBE5A2094882}" 6 | EndProject 7 | Global 8 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 9 | Debug|Win32 = Debug|Win32 10 | Debug|x64 = Debug|x64 11 | Release|Win32 = Release|Win32 12 | Release|x64 = Release|x64 13 | EndGlobalSection 14 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 15 | {2F539D87-62D4-FAD8-EFDE-CBE5A2094882}.Debug|Win32.ActiveCfg = Debug|Win32 16 | {2F539D87-62D4-FAD8-EFDE-CBE5A2094882}.Debug|Win32.Build.0 = Debug|Win32 17 | {2F539D87-62D4-FAD8-EFDE-CBE5A2094882}.Debug|x64.ActiveCfg = Debug|x64 18 | {2F539D87-62D4-FAD8-EFDE-CBE5A2094882}.Debug|x64.Build.0 = Debug|x64 19 | {2F539D87-62D4-FAD8-EFDE-CBE5A2094882}.Release|Win32.ActiveCfg = Release|Win32 20 | {2F539D87-62D4-FAD8-EFDE-CBE5A2094882}.Release|Win32.Build.0 = Release|Win32 21 | {2F539D87-62D4-FAD8-EFDE-CBE5A2094882}.Release|x64.ActiveCfg = Release|x64 22 | {2F539D87-62D4-FAD8-EFDE-CBE5A2094882}.Release|x64.Build.0 = Release|x64 23 | EndGlobalSection 24 | GlobalSection(SolutionProperties) = preSolution 25 | HideSolutionNode = FALSE 26 | EndGlobalSection 27 | EndGlobal 28 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/node-image-to-buffer/build/binding.v12.suo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saccadic/Unity-VNC-Client/ede140e188b9317416db3c2b0decc87dc921538f/Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/node-image-to-buffer/build/binding.v12.suo -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/node-image-to-buffer/build/config.gypi: -------------------------------------------------------------------------------- 1 | # Do not edit. File was generated by node-gyp's "configure" step 2 | { 3 | "target_defaults": { 4 | "cflags": [], 5 | "default_configuration": "Release", 6 | "defines": [], 7 | "include_dirs": [], 8 | "libraries": [] 9 | }, 10 | "variables": { 11 | "clang": 0, 12 | "host_arch": "ia32", 13 | "node_install_npm": "true", 14 | "node_prefix": "", 15 | "node_shared_cares": "false", 16 | "node_shared_http_parser": "false", 17 | "node_shared_libuv": "false", 18 | "node_shared_openssl": "false", 19 | "node_shared_v8": "false", 20 | "node_shared_zlib": "false", 21 | "node_tag": "", 22 | "node_unsafe_optimizations": 0, 23 | "node_use_dtrace": "false", 24 | "node_use_etw": "true", 25 | "node_use_openssl": "true", 26 | "node_use_perfctr": "true", 27 | "node_use_systemtap": "false", 28 | "python": "c:\\python27\\python.exe", 29 | "target_arch": "x64", 30 | "v8_enable_gdbjit": 0, 31 | "v8_no_strict_aliasing": 1, 32 | "v8_use_snapshot": "true", 33 | "visibility": "", 34 | "nodedir": "C:\\Users\\K.Hotta\\.node-gyp\\0.10.28", 35 | "copy_dev_lib": "true", 36 | "standalone_static_library": 1 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/node-image-to-buffer/build/png.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {739DB09A-CC57-A953-A6CF-F64FA08E4FA7} 6 | 7 | 8 | {739DB09A-CC57-A953-A6CF-F64FA08E4FA7} 9 | 10 | 11 | 12 | 13 | .. 14 | 15 | 16 | 17 | 18 | .. 19 | 20 | 21 | .. 22 | 23 | 24 | 25 | 26 | .. 27 | 28 | 29 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/node-image-to-buffer/build/png.vcxproj.user: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/node-image-to-buffer/data.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saccadic/Unity-VNC-Client/ede140e188b9317416db3c2b0decc87dc921538f/Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/node-image-to-buffer/data.txt -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/node-image-to-buffer/example.js: -------------------------------------------------------------------------------- 1 | var png = require('./index.js').png; 2 | var jpg = require('./index.js').jpg; 3 | 4 | var w = 255; 5 | var h = 255; 6 | var data = new Buffer(w*h*3); 7 | data.fill(0); 8 | for(var i=0,t=0;i 2 | #include 3 | #include "jpegEncoder.h" 4 | #include "PngEncoder.h" 5 | 6 | 7 | using namespace v8; 8 | using namespace node; 9 | 10 | Handle png_to_memory(const Arguments& args) { 11 | HandleScope scope; 12 | int w, h; 13 | int len; 14 | 15 | w = args[0]->Int32Value(); 16 | h = args[1]->Int32Value(); 17 | 18 | Local bufferObj = args[2]->ToObject(); 19 | char* bufferData = Buffer::Data(bufferObj); 20 | size_t bufferLength = Buffer::Length(bufferObj); 21 | 22 | PngEncoder png((unsigned char*)bufferData, w, h); 23 | png.Encode(); 24 | 25 | len = png.get_png_len(); 26 | Buffer *buf = Buffer::New(len); 27 | memcpy(Buffer::Data(buf->handle_),png.get_png(),len); 28 | 29 | return scope.Close(buf->handle_); 30 | } 31 | 32 | Handle jpeg_to_memory(const Arguments& args) { 33 | HandleScope scope; 34 | int w, h, i_c, q; 35 | int len; 36 | 37 | w = args[0]->Int32Value(); 38 | h = args[1]->Int32Value(); 39 | i_c = args[2]->Int32Value(); 40 | q = args[3]->Int32Value(); 41 | 42 | Local bufferObj = args[4]->ToObject(); 43 | char* bufferData = Buffer::Data(bufferObj); 44 | size_t bufferLength = Buffer::Length(bufferObj); 45 | 46 | jpegEncoder jpg; 47 | jpg.SetOption(w, h, i_c, q); 48 | jpg.Encode((unsigned char*)bufferData); 49 | 50 | len = jpg.get_jpeg_len(); 51 | Buffer *buf = Buffer::New(len); 52 | memcpy(Buffer::Data(buf->handle_), jpg.get_jpag() , len); 53 | 54 | return scope.Close(buf->handle_); 55 | } 56 | 57 | 58 | void init(Handle exports) { 59 | exports->Set(String::NewSymbol("write_png_to_memory"), FunctionTemplate::New(png_to_memory)->GetFunction()); 60 | exports->Set(String::NewSymbol("write_jpag_to_memory"), FunctionTemplate::New(jpeg_to_memory)->GetFunction()); 61 | } 62 | 63 | NODE_MODULE(NodeImageGenerator, init) -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/node-rfb3.8/README.md: -------------------------------------------------------------------------------- 1 | node-rfb3.8 2 | =========== 3 | 4 | node.jsのVNCクライアント 5 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/node-rfb3.8/TestServer.js: -------------------------------------------------------------------------------- 1 | var rfb = require('./rfb3.8.js'); 2 | var png = require('node-image-to-buffer').png; 3 | var jpg = require('node-image-to-buffer').jpg; 4 | var fs = require('fs'); 5 | var r = new rfb(); 6 | 7 | var password = 'savant'; 8 | 9 | r.connect('192.168.56.101','5902',password); 10 | var x = 0; 11 | r.events.on('connected',function(data){ 12 | console.log('client -> Authentication success'); 13 | console.log(data); 14 | 15 | r.info.pixel_format.bits_per_pixel = 32; 16 | r.info.pixel_format.depth = 8; 17 | r.info.pixel_format.big_endian_flag = 0; 18 | r.info.pixel_format.true_colour_flag = 1; 19 | 20 | r.SetPixelFormat(); 21 | r.SetEncodings(); 22 | r.FramebufferUpdateRequest(1,0,0,r.info.width,r.info.height); 23 | setInterval(function(){ 24 | r.FramebufferUpdateRequest(0,0,0,r.info.width,r.info.height); 25 | //r.PointerEvent(0,x,x); 26 | //console.log(x); 27 | },200); 28 | }); 29 | 30 | r.events.on('data',function(rect){ 31 | //console.log(rect.data.length+':',rect.data); 32 | //png.ToFile(rect.width,rect.height,'view.png',rect.data); 33 | //var buf = jpg.ToBuffer(rect.width,rect.height,3,50,rect.data); 34 | var buf = png.ToBuffer(rect.width,rect.height,rect.data); 35 | 36 | fs.writeFile('view.png', buf , function (err) { 37 | 38 | }); 39 | //var buf = png.ToBuffer(rect.width,rect.height,rect.data); 40 | console.log(x++,buf); 41 | //jpg.ToFile(rect.width,rect.height,3,50,'view.jpg',rect.data); 42 | }); 43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/node-rfb3.8/lib/vnc_des-ecb.js: -------------------------------------------------------------------------------- 1 | var crypto = require('crypto'); 2 | 3 | function PaddingText(text){ 4 | if (text.length < 8) { 5 | for(var i=0;i<=(8-text.length);i++){ 6 | text += '\0'; 7 | } 8 | } 9 | return text; 10 | } 11 | 12 | function ReverseByte(text) { 13 | var buf = new Buffer(text.length); 14 | for(var i=0;i '+util.inspect(pass,false,null)+'\n'+ 34 | 'challenge:'+challenge.length+':'+util.inspect(challenge,false,null)+'\n'+ 35 | 'DES :'+response.length+':'+util.inspect(response ,false,null) 36 | ); 37 | */ 38 | return response; 39 | } 40 | 41 | var des = {}; 42 | des.MakeResponse = MakeResponse; 43 | module.exports = des; 44 | 45 | 46 | 47 | 48 | 49 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/node-rfb3.8/node-rfb3.8.komodoproject: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/node-rfb3.8/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "node-rfb3.8", 3 | "version": "1.0.0", 4 | "description": "Vnc client for Node.js", 5 | "main": "rfb3.8.js", 6 | "dependencies": { 7 | "node-image-to-buffer": "^1.0.0" 8 | }, 9 | "devDependencies": {}, 10 | "scripts": { 11 | "test": "echo \"Error: no test specified\" && exit 1" 12 | }, 13 | "repository": { 14 | "type": "git", 15 | "url": "https://github.com/SavantCat/node-rfb3.8.git" 16 | }, 17 | "keywords": [ 18 | "vnc" 19 | ], 20 | "author": "Katsuyoshi Hotta", 21 | "license": "MIT", 22 | "bugs": { 23 | "url": "https://github.com/SavantCat/node-rfb3.8/issues" 24 | }, 25 | "homepage": "https://github.com/SavantCat/node-rfb3.8" 26 | } 27 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/node-rfb3.8/rfb3.8: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saccadic/Unity-VNC-Client/ede140e188b9317416db3c2b0decc87dc921538f/Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/node-rfb3.8/rfb3.8 -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/node-rfb3.8/rfb3.8.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saccadic/Unity-VNC-Client/ede140e188b9317416db3c2b0decc87dc921538f/Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/node-rfb3.8/rfb3.8.js -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/node-rfb3.8/view.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saccadic/Unity-VNC-Client/ede140e188b9317416db3c2b0decc87dc921538f/Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/node-rfb3.8/view.png -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/ws/.npmignore: -------------------------------------------------------------------------------- 1 | npm-debug.log 2 | node_modules 3 | .*.swp 4 | .lock-* 5 | build 6 | 7 | bench 8 | doc 9 | examples 10 | test 11 | 12 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/ws/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | npm_args: --ws:native 3 | node_js: 4 | - "0.8" 5 | - "0.10" 6 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/ws/Makefile: -------------------------------------------------------------------------------- 1 | ALL_TESTS = $(shell find test/ -name '*.test.js') 2 | ALL_INTEGRATION = $(shell find test/ -name '*.integration.js') 3 | 4 | all: 5 | node-gyp configure build 6 | 7 | clean: 8 | node-gyp clean 9 | 10 | run-tests: 11 | @./node_modules/.bin/mocha \ 12 | -t 5000 \ 13 | -s 2400 \ 14 | $(TESTFLAGS) \ 15 | $(TESTS) 16 | 17 | run-integrationtests: 18 | @./node_modules/.bin/mocha \ 19 | -t 5000 \ 20 | -s 6000 \ 21 | $(TESTFLAGS) \ 22 | $(TESTS) 23 | 24 | test: 25 | @$(MAKE) NODE_TLS_REJECT_UNAUTHORIZED=0 NODE_PATH=lib TESTS="$(ALL_TESTS)" run-tests 26 | 27 | integrationtest: 28 | @$(MAKE) NODE_TLS_REJECT_UNAUTHORIZED=0 NODE_PATH=lib TESTS="$(ALL_INTEGRATION)" run-integrationtests 29 | 30 | benchmark: 31 | @node bench/sender.benchmark.js 32 | @node bench/parser.benchmark.js 33 | 34 | autobahn: 35 | @NODE_PATH=lib node test/autobahn.js 36 | 37 | autobahn-server: 38 | @NODE_PATH=lib node test/autobahn-server.js 39 | 40 | .PHONY: test 41 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/ws/binding.gyp: -------------------------------------------------------------------------------- 1 | { 2 | 'targets': [ 3 | { 4 | 'target_name': 'validation', 5 | 'include_dirs': [" 2 | 3 | 4 | 5 | {739DB09A-CC57-A953-A6CF-F64FA08E4FA7} 6 | 7 | 8 | {8CDEE807-BC53-E450-C8B8-4DEBB66742D4} 9 | 10 | 11 | {739DB09A-CC57-A953-A6CF-F64FA08E4FA7} 12 | 13 | 14 | 15 | 16 | ..\src 17 | 18 | 19 | .. 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/ws/build/bufferutil.vcxproj.user: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/ws/build/validation.vcxproj.filters: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | {739DB09A-CC57-A953-A6CF-F64FA08E4FA7} 6 | 7 | 8 | {8CDEE807-BC53-E450-C8B8-4DEBB66742D4} 9 | 10 | 11 | {739DB09A-CC57-A953-A6CF-F64FA08E4FA7} 12 | 13 | 14 | 15 | 16 | ..\src 17 | 18 | 19 | .. 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/ws/builderror.log: -------------------------------------------------------------------------------- 1 | gyp ERR! build error 2 | gyp ERR! stack Error: `msbuild` failed with exit code: 1 3 | gyp ERR! stack at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:267:23) 4 | gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17) 5 | gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:807:12) 6 | gyp ERR! System Windows_NT 6.1.7601 7 | gyp ERR! command "node" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" 8 | gyp ERR! cwd G:\GitHub\Unode-dev\unodeV1.1\Assets\StreamingAssets\.node\src\node_modules\ws 9 | gyp ERR! node -v v0.10.28 10 | gyp ERR! node-gyp -v v0.13.0 11 | gyp ERR! not ok 12 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/ws/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | /*! 4 | * ws: a node.js websocket client 5 | * Copyright(c) 2011 Einar Otto Stangvik 6 | * MIT Licensed 7 | */ 8 | 9 | var WS = module.exports = require('./lib/WebSocket'); 10 | 11 | WS.Server = require('./lib/WebSocketServer'); 12 | WS.Sender = require('./lib/Sender'); 13 | WS.Receiver = require('./lib/Receiver'); 14 | 15 | /** 16 | * Create a new WebSocket server. 17 | * 18 | * @param {Object} options Server options 19 | * @param {Function} fn Optional connection listener. 20 | * @returns {WS.Server} 21 | * @api public 22 | */ 23 | WS.createServer = function createServer(options, fn) { 24 | var server = new WS.Server(options); 25 | 26 | if (typeof fn === 'function') { 27 | server.on('connection', fn); 28 | } 29 | 30 | return server; 31 | }; 32 | 33 | /** 34 | * Create a new WebSocket connection. 35 | * 36 | * @param {String} address The URL/address we need to connect to. 37 | * @param {Function} fn Open listener. 38 | * @returns {WS} 39 | * @api public 40 | */ 41 | WS.connect = WS.createConnection = function connect(address, fn) { 42 | var client = new WS(address); 43 | 44 | if (typeof fn === 'function') { 45 | client.on('open', fn); 46 | } 47 | 48 | return client; 49 | }; 50 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/ws/lib/BufferPool.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * ws: a node.js websocket client 3 | * Copyright(c) 2011 Einar Otto Stangvik 4 | * MIT Licensed 5 | */ 6 | 7 | var util = require('util'); 8 | 9 | function BufferPool(initialSize, growStrategy, shrinkStrategy) { 10 | if (typeof initialSize === 'function') { 11 | shrinkStrategy = growStrategy; 12 | growStrategy = initialSize; 13 | initialSize = 0; 14 | } 15 | else if (typeof initialSize === 'undefined') { 16 | initialSize = 0; 17 | } 18 | this._growStrategy = (growStrategy || function(db, size) { 19 | return db.used + size; 20 | }).bind(null, this); 21 | this._shrinkStrategy = (shrinkStrategy || function(db) { 22 | return initialSize; 23 | }).bind(null, this); 24 | this._buffer = initialSize ? new Buffer(initialSize) : null; 25 | this._offset = 0; 26 | this._used = 0; 27 | this._changeFactor = 0; 28 | this.__defineGetter__('size', function(){ 29 | return this._buffer == null ? 0 : this._buffer.length; 30 | }); 31 | this.__defineGetter__('used', function(){ 32 | return this._used; 33 | }); 34 | } 35 | 36 | BufferPool.prototype.get = function(length) { 37 | if (this._buffer == null || this._offset + length > this._buffer.length) { 38 | var newBuf = new Buffer(this._growStrategy(length)); 39 | this._buffer = newBuf; 40 | this._offset = 0; 41 | } 42 | this._used += length; 43 | var buf = this._buffer.slice(this._offset, this._offset + length); 44 | this._offset += length; 45 | return buf; 46 | } 47 | 48 | BufferPool.prototype.reset = function(forceNewBuffer) { 49 | var len = this._shrinkStrategy(); 50 | if (len < this.size) this._changeFactor -= 1; 51 | if (forceNewBuffer || this._changeFactor < -2) { 52 | this._changeFactor = 0; 53 | this._buffer = len ? new Buffer(len) : null; 54 | } 55 | this._offset = 0; 56 | this._used = 0; 57 | } 58 | 59 | module.exports = BufferPool; 60 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/ws/lib/BufferUtil.fallback.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * ws: a node.js websocket client 3 | * Copyright(c) 2011 Einar Otto Stangvik 4 | * MIT Licensed 5 | */ 6 | 7 | module.exports.BufferUtil = { 8 | merge: function(mergedBuffer, buffers) { 9 | var offset = 0; 10 | for (var i = 0, l = buffers.length; i < l; ++i) { 11 | var buf = buffers[i]; 12 | buf.copy(mergedBuffer, offset); 13 | offset += buf.length; 14 | } 15 | }, 16 | mask: function(source, mask, output, offset, length) { 17 | var maskNum = mask.readUInt32LE(0, true); 18 | var i = 0; 19 | for (; i < length - 3; i += 4) { 20 | var num = maskNum ^ source.readUInt32LE(i, true); 21 | if (num < 0) num = 4294967296 + num; 22 | output.writeUInt32LE(num, offset + i, true); 23 | } 24 | switch (length % 4) { 25 | case 3: output[offset + i + 2] = source[i + 2] ^ mask[2]; 26 | case 2: output[offset + i + 1] = source[i + 1] ^ mask[1]; 27 | case 1: output[offset + i] = source[i] ^ mask[0]; 28 | case 0:; 29 | } 30 | }, 31 | unmask: function(data, mask) { 32 | var maskNum = mask.readUInt32LE(0, true); 33 | var length = data.length; 34 | var i = 0; 35 | for (; i < length - 3; i += 4) { 36 | var num = maskNum ^ data.readUInt32LE(i, true); 37 | if (num < 0) num = 4294967296 + num; 38 | data.writeUInt32LE(num, i, true); 39 | } 40 | switch (length % 4) { 41 | case 3: data[i + 2] = data[i + 2] ^ mask[2]; 42 | case 2: data[i + 1] = data[i + 1] ^ mask[1]; 43 | case 1: data[i] = data[i] ^ mask[0]; 44 | case 0:; 45 | } 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/ws/lib/BufferUtil.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * ws: a node.js websocket client 3 | * Copyright(c) 2011 Einar Otto Stangvik 4 | * MIT Licensed 5 | */ 6 | 7 | try { 8 | module.exports = require('../build/Release/bufferutil'); 9 | } catch (e) { try { 10 | module.exports = require('../build/default/bufferutil'); 11 | } catch (e) { try { 12 | module.exports = require('./BufferUtil.fallback'); 13 | } catch (e) { 14 | console.error('bufferutil.node seems to not have been built. Run npm install.'); 15 | throw e; 16 | }}} 17 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/ws/lib/ErrorCodes.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * ws: a node.js websocket client 3 | * Copyright(c) 2011 Einar Otto Stangvik 4 | * MIT Licensed 5 | */ 6 | 7 | module.exports = { 8 | isValidErrorCode: function(code) { 9 | return (code >= 1000 && code <= 1011 && code != 1004 && code != 1005 && code != 1006) || 10 | (code >= 3000 && code <= 4999); 11 | }, 12 | 1000: 'normal', 13 | 1001: 'going away', 14 | 1002: 'protocol error', 15 | 1003: 'unsupported data', 16 | 1004: 'reserved', 17 | 1005: 'reserved for extensions', 18 | 1006: 'reserved for extensions', 19 | 1007: 'inconsistent or invalid data', 20 | 1008: 'policy violation', 21 | 1009: 'message too big', 22 | 1010: 'extension handshake missing', 23 | 1011: 'an unexpected condition prevented the request from being fulfilled', 24 | }; -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/ws/lib/Extensions.js: -------------------------------------------------------------------------------- 1 | 2 | var util = require('util'); 3 | 4 | /** 5 | * Module exports. 6 | */ 7 | 8 | exports.parse = parse; 9 | exports.format = format; 10 | 11 | /** 12 | * Parse extensions header value 13 | */ 14 | 15 | function parse(value) { 16 | value = value || ''; 17 | 18 | var extensions = {}; 19 | 20 | value.split(',').forEach(function(v) { 21 | var params = v.split(';'); 22 | var token = params.shift().trim(); 23 | var paramsList = extensions[token] = extensions[token] || []; 24 | var parsedParams = {}; 25 | 26 | params.forEach(function(param) { 27 | var parts = param.trim().split('='); 28 | var key = parts[0]; 29 | var value = parts[1]; 30 | if (typeof value === 'undefined') { 31 | value = true; 32 | } else { 33 | // unquote value 34 | if (value[0] === '"') { 35 | value = value.slice(1); 36 | } 37 | if (value[value.length - 1] === '"') { 38 | value = value.slice(0, value.length - 1); 39 | } 40 | } 41 | (parsedParams[key] = parsedParams[key] || []).push(value); 42 | }); 43 | 44 | paramsList.push(parsedParams); 45 | }); 46 | 47 | return extensions; 48 | } 49 | 50 | /** 51 | * Format extensions header value 52 | */ 53 | 54 | function format(value) { 55 | return Object.keys(value).map(function(token) { 56 | var paramsList = value[token]; 57 | if (!util.isArray(paramsList)) { 58 | paramsList = [paramsList]; 59 | } 60 | return paramsList.map(function(params) { 61 | return [token].concat(Object.keys(params).map(function(k) { 62 | var p = params[k]; 63 | if (!util.isArray(p)) p = [p]; 64 | return p.map(function(v) { 65 | return v === true ? k : k + '=' + v; 66 | }).join('; '); 67 | })).join('; '); 68 | }).join(', '); 69 | }).join(', '); 70 | } 71 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/ws/lib/Validation.fallback.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * ws: a node.js websocket client 3 | * Copyright(c) 2011 Einar Otto Stangvik 4 | * MIT Licensed 5 | */ 6 | 7 | module.exports.Validation = { 8 | isValidUTF8: function(buffer) { 9 | return true; 10 | } 11 | }; 12 | 13 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/ws/lib/Validation.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * ws: a node.js websocket client 3 | * Copyright(c) 2011 Einar Otto Stangvik 4 | * MIT Licensed 5 | */ 6 | 7 | try { 8 | module.exports = require('../build/Release/validation'); 9 | } catch (e) { try { 10 | module.exports = require('../build/default/validation'); 11 | } catch (e) { try { 12 | module.exports = require('./Validation.fallback'); 13 | } catch (e) { 14 | console.error('validation.node seems to not have been built. Run npm install.'); 15 | throw e; 16 | }}} 17 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/ws/lib/browser.js: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * Module dependencies. 4 | */ 5 | 6 | var global = (function() { return this; })(); 7 | 8 | /** 9 | * WebSocket constructor. 10 | */ 11 | 12 | var WebSocket = global.WebSocket || global.MozWebSocket; 13 | 14 | /** 15 | * Module exports. 16 | */ 17 | 18 | module.exports = WebSocket ? ws : null; 19 | 20 | /** 21 | * WebSocket constructor. 22 | * 23 | * The third `opts` options object gets ignored in web browsers, since it's 24 | * non-standard, and throws a TypeError if passed to the constructor. 25 | * See: https://github.com/einaros/ws/issues/227 26 | * 27 | * @param {String} uri 28 | * @param {Array} protocols (optional) 29 | * @param {Object) opts (optional) 30 | * @api public 31 | */ 32 | 33 | function ws(uri, protocols, opts) { 34 | var instance; 35 | if (protocols) { 36 | instance = new WebSocket(uri, protocols); 37 | } else { 38 | instance = new WebSocket(uri); 39 | } 40 | return instance; 41 | } 42 | 43 | if (WebSocket) ws.prototype = WebSocket.prototype; 44 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/ws/node_modules/nan/.dntrc: -------------------------------------------------------------------------------- 1 | ## DNT config file 2 | ## see https://github.com/rvagg/dnt 3 | 4 | NODE_VERSIONS="\ 5 | master \ 6 | v0.11.13 \ 7 | v0.10.30 \ 8 | v0.10.29 \ 9 | v0.10.28 \ 10 | v0.10.26 \ 11 | v0.10.25 \ 12 | v0.10.24 \ 13 | v0.10.23 \ 14 | v0.10.22 \ 15 | v0.10.21 \ 16 | v0.10.20 \ 17 | v0.10.19 \ 18 | v0.8.28 \ 19 | v0.8.27 \ 20 | v0.8.26 \ 21 | v0.8.24 \ 22 | " 23 | OUTPUT_PREFIX="nan-" 24 | TEST_CMD=" \ 25 | cd /dnt/ && \ 26 | npm install && \ 27 | node_modules/.bin/node-gyp --nodedir /usr/src/node/ rebuild --directory test && \ 28 | node_modules/.bin/tap --gc test/js/*-test.js \ 29 | " 30 | 31 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/ws/node_modules/nan/.nan.h.un~: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saccadic/Unity-VNC-Client/ede140e188b9317416db3c2b0decc87dc921538f/Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/ws/node_modules/nan/.nan.h.un~ -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/ws/node_modules/nan/LICENSE.md: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | ===================== 3 | 4 | Copyright (c) 2014 NAN contributors 5 | ----------------------------------- 6 | 7 | *NAN contributors listed at * 8 | 9 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 10 | 11 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 14 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/ws/node_modules/nan/appveyor.yml: -------------------------------------------------------------------------------- 1 | # http://www.appveyor.com/docs/appveyor-yml 2 | 3 | # Test against these versions of Node.js. 4 | environment: 5 | matrix: 6 | - nodejs_version: "0.8" 7 | - nodejs_version: "0.10" 8 | - nodejs_version: "0.11" 9 | 10 | # Install scripts. (runs after repo cloning) 11 | install: 12 | # Get the latest stable version of Node 0.STABLE.latest 13 | - npm install npm 14 | - move node_modules npm 15 | - ps: Update-NodeJsInstallation (Get-NodeJsLatestBuild $env:nodejs_version) 16 | # Typical npm stuff. 17 | - npm/.bin/npm install 18 | - npm/.bin/npm run rebuild-tests 19 | 20 | # Post-install test scripts. 21 | test_script: 22 | # Output useful info for debugging. 23 | - node --version 24 | - npm --version 25 | - cmd: npm test 26 | 27 | # Don't actually build. 28 | build: off 29 | 30 | # Set build version format here instead of in the admin panel. 31 | version: "{build}" 32 | 33 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/ws/node_modules/nan/build/config.gypi: -------------------------------------------------------------------------------- 1 | # Do not edit. File was generated by node-gyp's "configure" step 2 | { 3 | "target_defaults": { 4 | "cflags": [], 5 | "default_configuration": "Release", 6 | "defines": [], 7 | "include_dirs": [], 8 | "libraries": [] 9 | }, 10 | "variables": { 11 | "clang": 0, 12 | "gcc_version": 48, 13 | "host_arch": "x64", 14 | "node_install_npm": "true", 15 | "node_prefix": "/usr", 16 | "node_shared_cares": "false", 17 | "node_shared_http_parser": "false", 18 | "node_shared_libuv": "false", 19 | "node_shared_openssl": "false", 20 | "node_shared_v8": "false", 21 | "node_shared_zlib": "false", 22 | "node_tag": "", 23 | "node_use_dtrace": "false", 24 | "node_use_etw": "false", 25 | "node_use_mdb": "false", 26 | "node_use_openssl": "true", 27 | "node_use_perfctr": "false", 28 | "python": "/usr/bin/python", 29 | "target_arch": "x64", 30 | "uv_library": "static_library", 31 | "uv_parent_path": "/deps/uv/", 32 | "uv_use_dtrace": "false", 33 | "v8_enable_gdbjit": 0, 34 | "v8_enable_i18n_support": 0, 35 | "v8_no_strict_aliasing": 1, 36 | "v8_optimized_debug": 0, 37 | "v8_random_seed": 0, 38 | "v8_use_snapshot": "false", 39 | "nodedir": "/home/kkoopa/.node-gyp/0.11.13", 40 | "copy_dev_lib": "true", 41 | "standalone_static_library": 1 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/ws/node_modules/nan/include_dirs.js: -------------------------------------------------------------------------------- 1 | console.log(require('path').relative('.', __dirname)); 2 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/ws/node_modules/nan/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "nan", 3 | "version": "1.4.1", 4 | "description": "Native Abstractions for Node.js: C++ header for Node 0.8->0.12 compatibility", 5 | "main": "include_dirs.js", 6 | "repository": { 7 | "type": "git", 8 | "url": "git://github.com/rvagg/nan.git" 9 | }, 10 | "scripts": { 11 | "test": "tap --gc test/js/*-test.js", 12 | "rebuild-tests": "node-gyp rebuild --directory test" 13 | }, 14 | "contributors": [ 15 | { 16 | "name": "Rod Vagg", 17 | "email": "r@va.gg", 18 | "url": "https://github.com/rvagg" 19 | }, 20 | { 21 | "name": "Benjamin Byholm", 22 | "email": "bbyholm@abo.fi", 23 | "url": "https://github.com/kkoopa/" 24 | }, 25 | { 26 | "name": "Trevor Norris", 27 | "email": "trev.norris@gmail.com", 28 | "url": "https://github.com/trevnorris" 29 | }, 30 | { 31 | "name": "Nathan Rajlich", 32 | "email": "nathan@tootallnate.net", 33 | "url": "https://github.com/TooTallNate" 34 | }, 35 | { 36 | "name": "Brett Lawson", 37 | "email": "brett19@gmail.com", 38 | "url": "https://github.com/brett19" 39 | }, 40 | { 41 | "name": "Ben Noordhuis", 42 | "email": "info@bnoordhuis.nl", 43 | "url": "https://github.com/bnoordhuis" 44 | } 45 | ], 46 | "devDependencies": { 47 | "bindings": "~1.2.1", 48 | "node-gyp": "~1.0.2", 49 | "tap": "~0.4.13", 50 | "xtend": "~4.0.0" 51 | }, 52 | "license": "MIT", 53 | "bugs": { 54 | "url": "https://github.com/rvagg/nan/issues" 55 | }, 56 | "readme": "ERROR: No README data found!", 57 | "homepage": "https://github.com/rvagg/nan", 58 | "_id": "nan@1.4.1", 59 | "_shasum": "0a2bb562c558b440005b1f7eb8b31ccbdb565d5f", 60 | "_from": "nan@1.4.x", 61 | "_resolved": "https://registry.npmjs.org/nan/-/nan-1.4.1.tgz" 62 | } 63 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/ws/node_modules/options/.npmignore: -------------------------------------------------------------------------------- 1 | npm-debug.log 2 | node_modules 3 | .*.swp 4 | .lock-* 5 | build/ 6 | 7 | test 8 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/ws/node_modules/options/Makefile: -------------------------------------------------------------------------------- 1 | ALL_TESTS = $(shell find test/ -name '*.test.js') 2 | 3 | run-tests: 4 | @./node_modules/.bin/mocha \ 5 | -t 2000 \ 6 | $(TESTFLAGS) \ 7 | $(TESTS) 8 | 9 | test: 10 | @$(MAKE) NODE_PATH=lib TESTS="$(ALL_TESTS)" run-tests 11 | 12 | .PHONY: test 13 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/ws/node_modules/ultron/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | coverage 3 | .tern-port 4 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/ws/node_modules/ultron/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "0.8" 4 | - "0.10" 5 | - "0.11" 6 | before_install: 7 | - "npm install -g npm@1.4.x" 8 | script: 9 | - "npm run test-travis" 10 | after_script: 11 | - "npm install coveralls@2.11.x && cat coverage/lcov.info | coveralls" 12 | notifications: 13 | irc: 14 | channels: 15 | - "irc.freenode.org#unshift" 16 | on_success: change 17 | on_failure: change 18 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/ws/wscat/README.md: -------------------------------------------------------------------------------- 1 | # wscat 2 | 3 | WebSocket cat. 4 | 5 | ## Installation 6 | 7 | This module needs to be installed globally so use the `-g` flag when installing: 8 | 9 | ``` 10 | npm install -g wscat 11 | ``` 12 | 13 | ## Usage 14 | 15 | ``` 16 | $ wscat -c ws://echo.websocket.org 17 | connected (press CTRL+C to quit) 18 | > hi there 19 | < hi there 20 | > are you a happy parrot? 21 | < are you a happy parrot? 22 | ``` 23 | 24 | ## License 25 | 26 | MIT 27 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/node_modules/ws/wscat/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "wscat", 3 | "version": "1.0.0", 4 | "description": "WebSocket cat", 5 | "main": "index.js", 6 | "scripts": { 7 | "test": "echo \"Error: no test specified\" && exit 1" 8 | }, 9 | "repository": { 10 | "type": "git", 11 | "url": "https://github.com/einaros/ws/tree/master/wscat" 12 | }, 13 | "keywords": [ 14 | "wscat", 15 | "websocket", 16 | "cat" 17 | ], 18 | "author": "Arnout Kazemier, Einar Otto Stangvik", 19 | "license": "MIT", 20 | "dependencies": { 21 | "commander": "2.5.x", 22 | "tinycolor": "0.0.x", 23 | "ws": "0.4.x" 24 | }, 25 | "bin": { 26 | "wscat": "./bin/wscat" 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/test.js: -------------------------------------------------------------------------------- 1 | var WebSocket = require('ws'); 2 | var ws = new WebSocket('ws://www.host.com/path'); 3 | 4 | ws.on('open', function open() { 5 | ws.send('something'); 6 | }); 7 | 8 | ws.on('message', function(data, flags) { 9 | // flags.binary will be set if a binary data is received. 10 | // flags.masked will be set if the data was masked. 11 | }); -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/src/unity-vnc.komodoproject: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/x64.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 42d54334e0a44134b977e49050f5f0cc 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/x64/node.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saccadic/Unity-VNC-Client/ede140e188b9317416db3c2b0decc87dc921538f/Unity-VNC-Client/Assets/StreamingAssets/.node/x64/node.exe -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/x64/node.exe.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b2656a7539e340248aa5b24de0c9cabe 3 | DefaultImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/x86.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7acff7bc424cc0647b74f9ce412eb9d5 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/x86/node.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saccadic/Unity-VNC-Client/ede140e188b9317416db3c2b0decc87dc921538f/Unity-VNC-Client/Assets/StreamingAssets/.node/x86/node.exe -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/StreamingAssets/.node/x86/node.exe.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 40fdd3d4fad1f764e9a901e95bad6efb 3 | DefaultImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/Unode.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 31a75c5b367ed7c43ba86164994195c6 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/Unode/SubDisplay.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System.Collections; 3 | 4 | public class SubDisplay : MonoBehaviour { 5 | 6 | public vncclient vnc; 7 | 8 | // Use this for initialization 9 | void Start () { 10 | 11 | } 12 | 13 | // Update is called once per frame 14 | void Update () { 15 | if(vnc.rect){ 16 | gameObject.renderer.material.mainTexture = vnc.img; 17 | } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/Unode/SubDisplay.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5d0f7012b1c390e4e82971ed0b70125f 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/Unode/Unode_v1_3.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 428093d56d44f3c4c986fb58843d9bf7 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/Unode/Unode_v1_3.prefab: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1 &100000 4 | GameObject: 5 | m_ObjectHideFlags: 0 6 | m_PrefabParentObject: {fileID: 0} 7 | m_PrefabInternal: {fileID: 100100000} 8 | serializedVersion: 4 9 | m_Component: 10 | - 4: {fileID: 400000} 11 | - 114: {fileID: 11400000} 12 | m_Layer: 0 13 | m_Name: Unode_v1_3 14 | m_TagString: Untagged 15 | m_Icon: {fileID: 0} 16 | m_NavMeshLayer: 0 17 | m_StaticEditorFlags: 0 18 | m_IsActive: 1 19 | --- !u!4 &400000 20 | Transform: 21 | m_ObjectHideFlags: 1 22 | m_PrefabParentObject: {fileID: 0} 23 | m_PrefabInternal: {fileID: 100100000} 24 | m_GameObject: {fileID: 100000} 25 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 26 | m_LocalPosition: {x: 0, y: 0, z: 0} 27 | m_LocalScale: {x: 1, y: 1, z: 1} 28 | m_Children: [] 29 | m_Father: {fileID: 0} 30 | m_RootOrder: 0 31 | --- !u!114 &11400000 32 | MonoBehaviour: 33 | m_ObjectHideFlags: 1 34 | m_PrefabParentObject: {fileID: 0} 35 | m_PrefabInternal: {fileID: 100100000} 36 | m_GameObject: {fileID: 100000} 37 | m_Enabled: 1 38 | m_EditorHideFlags: 0 39 | m_Script: {fileID: 11500000, guid: 428093d56d44f3c4c986fb58843d9bf7, type: 3} 40 | m_Name: 41 | m_EditorClassIdentifier: 42 | adress: ws://127.0.0.1:8080/ 43 | IsNodeJS: 0 44 | program_name: node.exe 45 | windowtype_hidden: 0 46 | x86: 1 47 | nodejs_path: 48 | Script_path: 49 | connected: 0 50 | cmd: 0 51 | command: 52 | js: mainserver2.js 53 | ObjectName: 54 | mode: 55 | --- !u!1001 &100100000 56 | Prefab: 57 | m_ObjectHideFlags: 1 58 | serializedVersion: 2 59 | m_Modification: 60 | m_TransformParent: {fileID: 0} 61 | m_Modifications: [] 62 | m_RemovedComponents: [] 63 | m_ParentPrefab: {fileID: 0} 64 | m_RootGameObject: {fileID: 100000} 65 | m_IsPrefabParent: 1 66 | m_IsExploded: 1 67 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/Unode/Unode_v1_3.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f83f7915f1489024e963834c79b71ef0 3 | NativeFormatImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/Unode/VncTexture.mat: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!21 &2100000 4 | Material: 5 | serializedVersion: 3 6 | m_ObjectHideFlags: 0 7 | m_PrefabParentObject: {fileID: 0} 8 | m_PrefabInternal: {fileID: 0} 9 | m_Name: VncTexture 10 | m_Shader: {fileID: 10, guid: 0000000000000000f000000000000000, type: 0} 11 | m_ShaderKeywords: [] 12 | m_CustomRenderQueue: -1 13 | m_SavedProperties: 14 | serializedVersion: 2 15 | m_TexEnvs: 16 | data: 17 | first: 18 | name: _MainTex 19 | second: 20 | m_Texture: {fileID: 0} 21 | m_Scale: {x: 1, y: 1} 22 | m_Offset: {x: 0, y: 0} 23 | data: 24 | first: 25 | name: _Illum 26 | second: 27 | m_Texture: {fileID: 0} 28 | m_Scale: {x: 1, y: 1} 29 | m_Offset: {x: 0, y: 0} 30 | m_Floats: 31 | data: 32 | first: 33 | name: _EmissionLM 34 | second: 0 35 | m_Colors: 36 | data: 37 | first: 38 | name: _Color 39 | second: {r: .764705896, g: .764705896, b: .764705896, a: 1} 40 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/Unode/VncTexture.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9ef947f9cbb7a7b47931c1e65beaff4d 3 | NativeFormatImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/Unode/pointer.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System.Collections; 3 | 4 | public class pointer : MonoBehaviour { 5 | private Ray ray; 6 | private RaycastHit hit; 7 | 8 | public Vector3 hit_pos; 9 | public Vector3 size; 10 | public Vector3 pos; 11 | 12 | public float width=1,height=1; 13 | 14 | private vncclient vnc; 15 | 16 | public GameObject obj; 17 | 18 | void Awake() { 19 | Screen.showCursor = true; 20 | obj = GameObject.FindGameObjectWithTag ("pointer"); 21 | } 22 | 23 | void Update () { 24 | ray = Camera.main.ScreenPointToRay(Input.mousePosition); 25 | if (Physics.Raycast (ray, out hit, 1000)) { 26 | hit_pos = hit.point; 27 | pos = resize(hit.collider.gameObject.transform,hit.point,new Vector3(width,height,0)); 28 | if(Input.GetMouseButtonUp(0)){ 29 | Debug.Log("hit:"+hit.collider.name); 30 | /* 31 | vnc = hit.collider.gameObject.GetComponent(); 32 | if(vnc.connected == false){ 33 | vnc.connect(); 34 | vnc.connected = true; 35 | vnc.SetUpdateFream(); 36 | } 37 | */ 38 | 39 | } 40 | } 41 | /* 42 | if(Input.GetMouseButtonDown(1)){ 43 | if(!vnc.connected){ 44 | vnc.SetUpdateFream(); 45 | } 46 | } 47 | */ 48 | obj.transform.position = new Vector3 (hit_pos.x,hit_pos.y,transform.position.z); 49 | } 50 | 51 | Vector3 resize(Transform obj,Vector3 hit,Vector3 src){ 52 | size = new Vector3 (10.0f*obj.localScale.x, 10.0f*obj.localScale.y, 10.0f*obj.localScale.z); 53 | float x = Mathf.Abs((hit.x-obj.position.x) + size.x/2)*(src.x/size.x); 54 | float y = Mathf.Abs((hit.y-obj.position.y) - size.y/2)*(src.y/size.y); 55 | return new Vector3 (x,y,0); 56 | } 57 | 58 | public void setSize(float w,float h){ 59 | width = w; 60 | height = h; 61 | } 62 | } 63 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/Unode/pointer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3444a69b56f18884581f9cb917858531 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/Unode/pointer.mat: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!21 &2100000 4 | Material: 5 | serializedVersion: 3 6 | m_ObjectHideFlags: 0 7 | m_PrefabParentObject: {fileID: 0} 8 | m_PrefabInternal: {fileID: 0} 9 | m_Name: pointer 10 | m_Shader: {fileID: 10, guid: 0000000000000000f000000000000000, type: 0} 11 | m_ShaderKeywords: [] 12 | m_CustomRenderQueue: -1 13 | m_SavedProperties: 14 | serializedVersion: 2 15 | m_TexEnvs: 16 | data: 17 | first: 18 | name: _MainTex 19 | second: 20 | m_Texture: {fileID: 0} 21 | m_Scale: {x: 1, y: 1} 22 | m_Offset: {x: 0, y: 0} 23 | data: 24 | first: 25 | name: _Illum 26 | second: 27 | m_Texture: {fileID: 0} 28 | m_Scale: {x: 1, y: 1} 29 | m_Offset: {x: 0, y: 0} 30 | m_Floats: 31 | data: 32 | first: 33 | name: _EmissionLM 34 | second: 0 35 | m_Colors: 36 | data: 37 | first: 38 | name: _Color 39 | second: {r: 1, g: .931034446, b: 0, a: 1} 40 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/Unode/pointer.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b291a505ff830a44abb14c6a8f3837fa 3 | NativeFormatImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/Unode/pointer.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8839fd4eaad539049b55566b87c5cc5d 3 | NativeFormatImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/Unode/subDisplay.mat: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!21 &2100000 4 | Material: 5 | serializedVersion: 3 6 | m_ObjectHideFlags: 0 7 | m_PrefabParentObject: {fileID: 0} 8 | m_PrefabInternal: {fileID: 0} 9 | m_Name: subDisplay 10 | m_Shader: {fileID: 10, guid: 0000000000000000f000000000000000, type: 0} 11 | m_ShaderKeywords: [] 12 | m_CustomRenderQueue: -1 13 | m_SavedProperties: 14 | serializedVersion: 2 15 | m_TexEnvs: 16 | data: 17 | first: 18 | name: _MainTex 19 | second: 20 | m_Texture: {fileID: 0} 21 | m_Scale: {x: 1, y: 1} 22 | m_Offset: {x: 0, y: 0} 23 | data: 24 | first: 25 | name: _Illum 26 | second: 27 | m_Texture: {fileID: 0} 28 | m_Scale: {x: 1, y: 1} 29 | m_Offset: {x: 0, y: 0} 30 | m_Floats: 31 | data: 32 | first: 33 | name: _EmissionLM 34 | second: 0 35 | m_Colors: 36 | data: 37 | first: 38 | name: _Color 39 | second: {r: .727941155, g: .727941155, b: .727941155, a: 1} 40 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/Unode/subDisplay.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 865fc8552e0d27b4588f51ff2cd7b506 3 | NativeFormatImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/Unode/test.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System.Collections; 3 | 4 | public class test : MonoBehaviour { 5 | 6 | public vncclient vnc; 7 | 8 | // Use this for initialization 9 | void Start () { 10 | } 11 | 12 | // Update is called once per frame 13 | void Update () { 14 | if(Input.GetKeyDown(KeyCode.F1)){ 15 | vnc.connect(); 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/Unode/test.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cde7ce3b5ccfaa043b7d7953d6bd590e 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/Unode/vncclient.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2b1f0cde614ce5f4dbfffb28fde29fe5 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/Unode/vncclient.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4d6184da1ec0f5942afe9fad576f4c13 3 | NativeFormatImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/Unode/vncclient2.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cef75c0d193ec28428c870d0623e73fa 3 | NativeFormatImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/liunx.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 361c7abe83e694345875c048b1f45c3e 3 | DefaultImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/main.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5f35edb0797b90047ac480073fc09bdc 3 | DefaultImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/main2.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bf3b277728b90d044a70f89b778f8442 3 | DefaultImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/main3.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 28bc97cc51464324bb440708a84f9039 3 | DefaultImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/plugins.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3305cbab029ee3641a68456d72d832ef 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/plugins/MiniMessagePacker.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 80e5206f3c2a0aa4e9a00fbf1a8cf95f 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/plugins/OculusPlugin.bundle.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b0a8f85a769c8e2438e0c3a9b9150d36 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/plugins/OculusPlugin.bundle/Contents.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1e6698eb30eec3b41af2683acd39ea46 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/plugins/OculusPlugin.bundle/Contents/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | BuildMachineOSBuild 6 | 13F34 7 | CFBundleDevelopmentRegion 8 | English 9 | CFBundleExecutable 10 | OculusPlugin 11 | CFBundleIdentifier 12 | OculusVR.OculusPlugin 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | OculusPlugin 17 | CFBundlePackageType 18 | BNDL 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | 1 25 | CFPlugInDynamicRegisterFunction 26 | 27 | CFPlugInDynamicRegistration 28 | NO 29 | CFPlugInFactories 30 | 31 | 00000000-0000-0000-0000-000000000000 32 | MyFactoryFunction 33 | 34 | CFPlugInTypes 35 | 36 | 00000000-0000-0000-0000-000000000000 37 | 38 | 00000000-0000-0000-0000-000000000000 39 | 40 | 41 | CFPlugInUnloadFunction 42 | 43 | DTCompiler 44 | com.apple.compilers.llvm.clang.1_0 45 | DTPlatformBuild 46 | 6A1052d 47 | DTPlatformVersion 48 | GM 49 | DTSDKBuild 50 | 14A382 51 | DTSDKName 52 | macosx10.10 53 | DTXcode 54 | 0610 55 | DTXcodeBuild 56 | 6A1052d 57 | NSHumanReadableCopyright 58 | Copyright © 2013 Peter Giokaris. All rights reserved. 59 | 60 | 61 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/plugins/OculusPlugin.bundle/Contents/Info.plist.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5619270e496857e42b77c4b406043e28 3 | DefaultImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/plugins/OculusPlugin.bundle/Contents/MacOS.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1fa1f4bb1d0356c4dad0f63c28b52981 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/plugins/OculusPlugin.bundle/Contents/MacOS/OculusPlugin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saccadic/Unity-VNC-Client/ede140e188b9317416db3c2b0decc87dc921538f/Unity-VNC-Client/Assets/plugins/OculusPlugin.bundle/Contents/MacOS/OculusPlugin -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/plugins/OculusPlugin.bundle/Contents/MacOS/OculusPlugin.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9cf6cdb9ec727a442a5026d566a80438 3 | DefaultImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/plugins/OculusPlugin.bundle/Contents/MacOS/OculusPlugin.signature: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saccadic/Unity-VNC-Client/ede140e188b9317416db3c2b0decc87dc921538f/Unity-VNC-Client/Assets/plugins/OculusPlugin.bundle/Contents/MacOS/OculusPlugin.signature -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/plugins/OculusPlugin.bundle/Contents/MacOS/OculusPlugin.signature.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a1ab343a63ef36c42a333457cc64522a 3 | DefaultImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/plugins/OculusPlugin.bundle/Contents/Resources.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e730168b2907fe3468392d6039bd2f8f 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/plugins/OculusPlugin.bundle/Contents/Resources/en.lproj.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 83c1ca20040e66a47b3911b67d8539ec 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/plugins/OculusPlugin.bundle/Contents/Resources/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saccadic/Unity-VNC-Client/ede140e188b9317416db3c2b0decc87dc921538f/Unity-VNC-Client/Assets/plugins/OculusPlugin.bundle/Contents/Resources/en.lproj/InfoPlist.strings -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/plugins/OculusPlugin.bundle/Contents/Resources/en.lproj/InfoPlist.strings.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e81d9f75e5059564f860f58cf2f6b38b 3 | DefaultImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/plugins/donotdelete.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saccadic/Unity-VNC-Client/ede140e188b9317416db3c2b0decc87dc921538f/Unity-VNC-Client/Assets/plugins/donotdelete.txt -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/plugins/donotdelete.txt.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: de321e5040ba2f94d877853c12e0ed27 3 | TextScriptImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/plugins/websocket-sharp.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saccadic/Unity-VNC-Client/ede140e188b9317416db3c2b0decc87dc921538f/Unity-VNC-Client/Assets/plugins/websocket-sharp.dll -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/plugins/websocket-sharp.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c80716d95f6f63e478db1f41d33edaab 3 | MonoAssemblyImporter: 4 | serializedVersion: 1 5 | iconMap: {} 6 | executionOrder: {} 7 | userData: 8 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/plugins/x86.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0c71c6a96f47554489da40c46ce2b5f9 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/plugins/x86/OculusPlugin.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saccadic/Unity-VNC-Client/ede140e188b9317416db3c2b0decc87dc921538f/Unity-VNC-Client/Assets/plugins/x86/OculusPlugin.dll -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/plugins/x86/OculusPlugin.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d0e1e83f693ab5e40a61ea3b270fb52b 3 | DefaultImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/plugins/x86/OculusPlugin.dll.signature: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saccadic/Unity-VNC-Client/ede140e188b9317416db3c2b0decc87dc921538f/Unity-VNC-Client/Assets/plugins/x86/OculusPlugin.dll.signature -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/plugins/x86/OculusPlugin.dll.signature.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ad71ea05047d5654ab5742535f7aadc3 3 | DefaultImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/plugins/x86/donotdelete.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saccadic/Unity-VNC-Client/ede140e188b9317416db3c2b0decc87dc921538f/Unity-VNC-Client/Assets/plugins/x86/donotdelete.txt -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/plugins/x86/donotdelete.txt.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 23bf2f4df9b8df54485a8e04ea20bc1c 3 | TextScriptImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/plugins/x86_64.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3128b471ccceabc44a612250919362e6 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/plugins/x86_64/OculusPlugin.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saccadic/Unity-VNC-Client/ede140e188b9317416db3c2b0decc87dc921538f/Unity-VNC-Client/Assets/plugins/x86_64/OculusPlugin.dll -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/plugins/x86_64/OculusPlugin.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 29eb3e1717196784c89e3fab46921fef 3 | DefaultImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/plugins/x86_64/OculusPlugin.dll.signature: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saccadic/Unity-VNC-Client/ede140e188b9317416db3c2b0decc87dc921538f/Unity-VNC-Client/Assets/plugins/x86_64/OculusPlugin.dll.signature -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/plugins/x86_64/OculusPlugin.dll.signature.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5bcc17c0cc1399740be048f450c8d5c9 3 | DefaultImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/plugins/x86_64/donotdelete.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saccadic/Unity-VNC-Client/ede140e188b9317416db3c2b0decc87dc921538f/Unity-VNC-Client/Assets/plugins/x86_64/donotdelete.txt -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/plugins/x86_64/donotdelete.txt.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2ba1b672056c888499fbdd1e673bcd0b 3 | TextScriptImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/plugins/x86_64/libOculusPlugin.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saccadic/Unity-VNC-Client/ede140e188b9317416db3c2b0decc87dc921538f/Unity-VNC-Client/Assets/plugins/x86_64/libOculusPlugin.so -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/plugins/x86_64/libOculusPlugin.so.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5a14a7354f6a5be4fbdf155861b4535d 3 | DefaultImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/plugins/x86_64/libOculusPlugin.so.signature: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saccadic/Unity-VNC-Client/ede140e188b9317416db3c2b0decc87dc921538f/Unity-VNC-Client/Assets/plugins/x86_64/libOculusPlugin.so.signature -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/plugins/x86_64/libOculusPlugin.so.signature.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f0dc82cd37a233a4e991f1f0e2f19631 3 | DefaultImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Assets/script.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 215f4ea1123b0c347a3d7895cb88d570 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /Unity-VNC-Client/ProjectSettings/AudioManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!11 &1 4 | AudioManager: 5 | m_ObjectHideFlags: 0 6 | m_Volume: 1 7 | Rolloff Scale: 1 8 | m_SpeedOfSound: 347 9 | Doppler Factor: 1 10 | Default Speaker Mode: 2 11 | m_DSPBufferSize: 0 12 | m_DisableAudio: 0 13 | -------------------------------------------------------------------------------- /Unity-VNC-Client/ProjectSettings/DynamicsManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!55 &1 4 | PhysicsManager: 5 | m_ObjectHideFlags: 0 6 | m_Gravity: {x: 0, y: -9.81000042, z: 0} 7 | m_DefaultMaterial: {fileID: 0} 8 | m_BounceThreshold: 2 9 | m_SleepVelocity: .150000006 10 | m_SleepAngularVelocity: .140000001 11 | m_MaxAngularVelocity: 7 12 | m_MinPenetrationForPenalty: .00999999978 13 | m_SolverIterationCount: 6 14 | m_RaycastsHitTriggers: 1 15 | m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff 16 | -------------------------------------------------------------------------------- /Unity-VNC-Client/ProjectSettings/EditorBuildSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1045 &1 4 | EditorBuildSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_Scenes: 8 | - enabled: 1 9 | path: Assets/liunx.unity 10 | -------------------------------------------------------------------------------- /Unity-VNC-Client/ProjectSettings/EditorSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!159 &1 4 | EditorSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 3 7 | m_ExternalVersionControlSupport: Visible Meta Files 8 | m_SerializationMode: 2 9 | m_WebSecurityEmulationEnabled: 0 10 | m_WebSecurityEmulationHostUrl: http://www.mydomain.com/mygame.unity3d 11 | m_DefaultBehaviorMode: 0 12 | m_SpritePackerMode: 2 13 | -------------------------------------------------------------------------------- /Unity-VNC-Client/ProjectSettings/GraphicsSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!30 &1 4 | GraphicsSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_AlwaysIncludedShaders: 8 | - {fileID: 7, guid: 0000000000000000f000000000000000, type: 0} 9 | - {fileID: 10770, guid: 0000000000000000f000000000000000, type: 0} 10 | - {fileID: 10782, guid: 0000000000000000f000000000000000, type: 0} 11 | -------------------------------------------------------------------------------- /Unity-VNC-Client/ProjectSettings/NetworkManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!149 &1 4 | NetworkManager: 5 | m_ObjectHideFlags: 0 6 | m_DebugLevel: 0 7 | m_Sendrate: 15 8 | m_AssetToPrefab: {} 9 | -------------------------------------------------------------------------------- /Unity-VNC-Client/ProjectSettings/Physics2DSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!19 &1 4 | Physics2DSettings: 5 | m_ObjectHideFlags: 0 6 | m_Gravity: {x: 0, y: -9.81000042} 7 | m_DefaultMaterial: {fileID: 0} 8 | m_VelocityIterations: 8 9 | m_PositionIterations: 3 10 | m_VelocityThreshold: 1 11 | m_MaxLinearCorrection: .200000003 12 | m_MaxAngularCorrection: 8 13 | m_MaxTranslationSpeed: 100 14 | m_MaxRotationSpeed: 360 15 | m_MinPenetrationForPenalty: .00999999978 16 | m_BaumgarteScale: .200000003 17 | m_BaumgarteTimeOfImpactScale: .75 18 | m_TimeToSleep: .5 19 | m_LinearSleepTolerance: .00999999978 20 | m_AngularSleepTolerance: 2 21 | m_RaycastsHitTriggers: 1 22 | m_RaycastsStartInColliders: 1 23 | m_ChangeStopsCallbacks: 1 24 | m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff 25 | -------------------------------------------------------------------------------- /Unity-VNC-Client/ProjectSettings/TagManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!78 &1 4 | TagManager: 5 | tags: 6 | - vnc 7 | - pointer 8 | - 9 | Builtin Layer 0: Default 10 | Builtin Layer 1: TransparentFX 11 | Builtin Layer 2: Ignore Raycast 12 | Builtin Layer 3: 13 | Builtin Layer 4: Water 14 | Builtin Layer 5: UI 15 | Builtin Layer 6: 16 | Builtin Layer 7: 17 | User Layer 8: 18 | User Layer 9: 19 | User Layer 10: 20 | User Layer 11: 21 | User Layer 12: 22 | User Layer 13: 23 | User Layer 14: 24 | User Layer 15: 25 | User Layer 16: 26 | User Layer 17: 27 | User Layer 18: 28 | User Layer 19: 29 | User Layer 20: 30 | User Layer 21: 31 | User Layer 22: 32 | User Layer 23: 33 | User Layer 24: 34 | User Layer 25: 35 | User Layer 26: 36 | User Layer 27: 37 | User Layer 28: 38 | User Layer 29: 39 | User Layer 30: 40 | User Layer 31: 41 | m_SortingLayers: 42 | - name: Default 43 | userID: 0 44 | uniqueID: 0 45 | locked: 0 46 | -------------------------------------------------------------------------------- /Unity-VNC-Client/ProjectSettings/TimeManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!5 &1 4 | TimeManager: 5 | m_ObjectHideFlags: 0 6 | Fixed Timestep: .0199999996 7 | Maximum Allowed Timestep: .333333343 8 | m_TimeScale: 1 9 | -------------------------------------------------------------------------------- /Unity-VNC-Client/Unity-VNC-Client.userprefs: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | --------------------------------------------------------------------------------