mirror of
https://github.com/Genymobile/scrcpy.git
synced 2025-04-21 03:55:05 +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 {
|
||||
START(1),
|
||||
SOCKET(2),
|
||||
STOP(30),
|
||||
CLEANED(31),
|
||||
;
|
||||
|
|
|
@ -83,6 +83,9 @@ public final class Server {
|
|||
if(options.getBroadcastIntents().contains(Intents.START)){
|
||||
announceScrcpyStarting();
|
||||
}
|
||||
if(options.getBroadcastIntents().contains(Intents.SOCKET)){
|
||||
scrcpyRunningSocket();
|
||||
}
|
||||
|
||||
try {
|
||||
// synchronous
|
||||
|
|
Loading…
Add table
Reference in a new issue