1. 12 3月, 2018 2 次提交
  2. 11 3月, 2018 2 次提交
  3. 10 3月, 2018 3 次提交
  4. 09 3月, 2018 2 次提交
  5. 08 3月, 2018 21 次提交
  6. 01 3月, 2018 1 次提交
  7. 28 2月, 2018 5 次提交
    • R
      Terminate the server on stop · c78ad637
      Romain Vimont 提交于
      On user request to quit, two kinds of blocking calls must be interrupted
      on the server:
       1. the reads from and writes to the socket;
       2. the call to MediaCodec.dequeueOutputBuffer().
      
      The former case was handled by calling shutdown() on the socket from the
      client, but the latter was not managed.
      
      There is no easy way to wake this call properly, so just terminate the
      process from the client (i.e. send SIGTERM on Linux) instead.
      c78ad637
    • R
      Initialize eof flag from BufferInfo · b61310a2
      Romain Vimont 提交于
      Stop encoding if the codec signaled the end of stream.
      
      The eof flag was read, but never written.
      b61310a2
    • R
      Clean up the server from temporary folder · 221a7d08
      Romain Vimont 提交于
      The server is copied to /data/local/tmp/scrcpy-server.jar and executed
      on the device.
      
      As soon as we are connected, we can unlink (rm) it from /data/local/tmp,
      to keep the device clean.
      221a7d08
    • R
      Clean up useless const-casts · 08d32e3b
      Romain Vimont 提交于
      The function adb_execute() now expects a "const char *const *" parameter
      for the adb command, so there is no need to cast.
      08d32e3b
    • R
      Rename ScrCpyServer to Server · 487cb10c
      Romain Vimont 提交于
      The Server class is in package scrcpy, there is no need to repeat the
      name in the classname.
      487cb10c
  8. 16 2月, 2018 4 次提交
    • R
      Add missing .PHONY in portable Makefile · 0d050d83
      Romain Vimont 提交于
      The recipe "build-portable" is also the name of the generated directory.
      Add this name to the .PHONY list.
      0d050d83
    • R
      Rename SCRCPY_SERVER_JAR to SCRCPY_SERVER_PATH · 08937892
      Romain Vimont 提交于
      The server is currently a JAR, but it may ba an APK or a DEX, so the
      variable name should not contain the type.
      
      Rename the environment variable, the Meson options and the C
      definitions.
      08937892
    • R
      Reuse server address · 60f31851
      Romain Vimont 提交于
      Set SO_REUSEADDR flag to server socket, so that bind() does not fail if
      we restart scrcpy immediately after we closed the previous one.
      60f31851
    • R
      Log socket errors · 6db22ef3
      Romain Vimont 提交于
      Do not silently ignore close() and shutdown() errors, and use perror()
      to get the errno.
      6db22ef3