From d54251ed162e654ae43c978c629a023b15f8d678 Mon Sep 17 00:00:00 2001 From: Gangphon Date: Mon, 25 Nov 2024 11:50:10 +0800 Subject: [PATCH] rename --- .../app/src/main/java/com/xixun/xixunplayer/MainActivity.java | 2 +- .../xixun/xixunplayer/{SocketThread.java => TCPThread.java} | 4 ++-- XixunPlayer/app/src/main/java/com/xixun/xixunplayer/Util.java | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) rename XixunPlayer/app/src/main/java/com/xixun/xixunplayer/{SocketThread.java => TCPThread.java} (99%) diff --git a/XixunPlayer/app/src/main/java/com/xixun/xixunplayer/MainActivity.java b/XixunPlayer/app/src/main/java/com/xixun/xixunplayer/MainActivity.java index ca0a0e7..ca51114 100644 --- a/XixunPlayer/app/src/main/java/com/xixun/xixunplayer/MainActivity.java +++ b/XixunPlayer/app/src/main/java/com/xixun/xixunplayer/MainActivity.java @@ -676,7 +676,7 @@ public class MainActivity extends Activity implements Choreographer.FrameCallbac try { Util.println("\nAccepting ..."); var socket = serverSocket.accept(); - new SocketThread(MainActivity.ins, socket).start(); + new TCPThread(MainActivity.ins, socket).start(); Util.println("\nAccepted"); } catch (Throwable e) { var ins = MainActivity.ins; diff --git a/XixunPlayer/app/src/main/java/com/xixun/xixunplayer/SocketThread.java b/XixunPlayer/app/src/main/java/com/xixun/xixunplayer/TCPThread.java similarity index 99% rename from XixunPlayer/app/src/main/java/com/xixun/xixunplayer/SocketThread.java rename to XixunPlayer/app/src/main/java/com/xixun/xixunplayer/TCPThread.java index 6be58ba..fc1da68 100644 --- a/XixunPlayer/app/src/main/java/com/xixun/xixunplayer/SocketThread.java +++ b/XixunPlayer/app/src/main/java/com/xixun/xixunplayer/TCPThread.java @@ -36,14 +36,14 @@ import gnph.util.JSMap; import gnph.util.NumFmts; import gnph.util.O; -public class SocketThread extends Thread { +public class TCPThread extends Thread { MainActivity main; Socket socket; InputStream in; OutputStream out; SimpleDateFormat fmt = new SimpleDateFormat("MM-dd HH:mm:ss"); - public SocketThread(MainActivity main, Socket socket) { + public TCPThread(MainActivity main, Socket socket) { this.main = main; this.socket = socket; } diff --git a/XixunPlayer/app/src/main/java/com/xixun/xixunplayer/Util.java b/XixunPlayer/app/src/main/java/com/xixun/xixunplayer/Util.java index f432ef4..652722c 100644 --- a/XixunPlayer/app/src/main/java/com/xixun/xixunplayer/Util.java +++ b/XixunPlayer/app/src/main/java/com/xixun/xixunplayer/Util.java @@ -30,7 +30,7 @@ public class Util { static { noScaled.inScaled = false; } - public static final Vector socketThreads = new Vector<>(); + public static final Vector socketThreads = new Vector<>(); public static final HashMap stateDescs = new HashMap<>(); static { stateDescs.put(1, new String[]{"Initialize", "初始化"});