Android tests - Printable Version +- Cuberite Forum (https://forum.cuberite.org) +-- Forum: Cuberite (https://forum.cuberite.org/forum-4.html) +--- Forum: Development (https://forum.cuberite.org/forum-13.html) +--- Thread: Android tests (/thread-530.html) |
RE: Android tests - xoft - 08-20-2012 You can send any data through the pipe. And you can have many pipes. So perhaps one pipe from the server carrying logs, another pipe to the server carrying commands, and another pipe from the server carrying command responses. or status, or whatever. Or even combine everything onto a single pipe in each direction. RE: Android tests - FakeTruth - 08-20-2012 Then I guess I don't know what pipes are.. RE: Android tests - xoft - 08-21-2012 Pipe, in a Unix environment, is a an object that supoprts one-way character-based FIFO communication. You create a pipe using pipe() function, it returns two file descriptors, one for writing and one for reading. What you write to the write-end, you can read on the read end. You can even pass those file descriptors to other processes; that's how inter-process output redirection works (schematically). So next time you use "ls -al | grep MCS", know that the pipe character ("|") means that you're creating a pipe between the two processes. For our purposes, both ends of the pipe would stay inside the app, just the write end would be used by the logger and the read end by the java thread that would poll it for data (the reading function blocks when there's no data to read, so it's effective). http://www.cse.ohio-state.edu/~mamrak/CIS762/pipes_lab_notes.html RE: Android tests - Taugeshtu - 08-21-2012 Could we have a simple step-by-step "Installing and running on Android" instruction? I would like to test MCS on my new Ainol Aurora 2 (1 Gb, 2 cores, wowowow!) RE: Android tests - xoft - 08-22-2012 Download APK attached to FakeTruth's post above to phone, install. Run. That's it If you want to tinker with the config, it's on the SD card in mcserver folder RE: Android tests - FakeTruth - 08-22-2012 Pretty much yes.. Just install the APK and run it once. It will create the folders it needs (unfortunately it uses a really slow world gen by default). Then stop the server, and change the settings that are stored on you SD card RE: Android tests - Taugeshtu - 08-22-2012 Interesting... With default world.ini I get 2.7 chunks/s generation speed, with fine-tuned config like that: Code: [Storage] All done with "normal" cpu mode settings. With "perfomance" cpu mode setting I got 1.3 chunk/s on same "fine" config. And one more thing: WebAdmin is running perfectly, accessable from mobile device too RE: Android tests - FakeTruth - 08-22-2012 You're using DualRidgeCaves, aren't those supposed to be super slow? RE: Android tests - NiLSPACE - 08-22-2012 yes why are you using dualridge? if you use wormnestcaves it will be much faster. RE: Android tests - Taugeshtu - 08-22-2012 Well, because I can Here's test result in Perfomance CPU mode with wormnestcaves: 17 chunks per second !!! Awesome, I think Now I have a proof that I choosed the right tablet |