mirror of
https://github.com/mamoe/mirai.git
synced 2025-03-03 15:10:14 +08:00
network
This commit is contained in:
parent
5c3cce7e08
commit
48db4a92b7
@ -8,6 +8,7 @@ import java.nio.charset.StandardCharsets;
|
||||
public class MiraiUDPClient {
|
||||
private DatagramSocket localUDPSocket;
|
||||
private Thread thread;
|
||||
|
||||
public MiraiUDPClient(InetAddress target, int targetPort, int localPort) {
|
||||
try{
|
||||
this.localUDPSocket = new DatagramSocket(localPort);
|
||||
|
Loading…
Reference in New Issue
Block a user