Skip to content

Commit

Permalink
Added system.out on connect
Browse files Browse the repository at this point in the history
  • Loading branch information
mondain authored Jun 1, 2021
1 parent 8ca82c8 commit 8ccdb72
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/org/red5/server/Shutdown.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ public class Shutdown {
public static void main(String[] args) {
String host = System.getProperty("red5.shutdown.host", "127.0.0.1");
try (Socket clientSocket = new Socket(host, Integer.valueOf(args[0])); PrintWriter out = new PrintWriter(clientSocket.getOutputStream(), true); BufferedReader in = new BufferedReader(new InputStreamReader(clientSocket.getInputStream()));) {
System.out.printf("Connected - local: %s remote: %s%n", clientSocket.getLocalSocketAddress().toString(), clientSocket.getRemoteSocketAddress().toString());
// send the token
String token = "cafebeef";
if (args.length > 1) {
Expand Down

0 comments on commit 8ccdb72

Please sign in to comment.