mirror of
https://github.com/Genymobile/scrcpy.git
synced 2025-08-05 07:39:23 +00:00
Add code to initiate the server
This commit is contained in:
parent
0385d718a5
commit
d0f060712f
2 changed files with 4 additions and 0 deletions
|
@ -5,6 +5,7 @@ import java.util.*;
|
||||||
|
|
||||||
enum Intents {
|
enum Intents {
|
||||||
START(1),
|
START(1),
|
||||||
|
SOCKET(2),
|
||||||
STOP(30),
|
STOP(30),
|
||||||
CLEANED(31),
|
CLEANED(31),
|
||||||
;
|
;
|
||||||
|
|
|
@ -83,6 +83,9 @@ public final class Server {
|
||||||
if(options.getBroadcastIntents().contains(Intents.START)){
|
if(options.getBroadcastIntents().contains(Intents.START)){
|
||||||
announceScrcpyStarting();
|
announceScrcpyStarting();
|
||||||
}
|
}
|
||||||
|
if(options.getBroadcastIntents().contains(Intents.SOCKET)){
|
||||||
|
scrcpyRunningSocket();
|
||||||
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
// synchronous
|
// synchronous
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue