Commit 48db4a92 authored by liujiahua123123's avatar liujiahua123123

network

parent 5c3cce7e
...@@ -8,6 +8,7 @@ import java.nio.charset.StandardCharsets; ...@@ -8,6 +8,7 @@ import java.nio.charset.StandardCharsets;
public class MiraiUDPClient { public class MiraiUDPClient {
private DatagramSocket localUDPSocket; private DatagramSocket localUDPSocket;
private Thread thread; private Thread thread;
public MiraiUDPClient(InetAddress target, int targetPort, int localPort) { public MiraiUDPClient(InetAddress target, int targetPort, int localPort) {
try{ try{
this.localUDPSocket = new DatagramSocket(localPort); this.localUDPSocket = new DatagramSocket(localPort);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment