mirror of
https://github.com/mamoe/mirai.git
synced 2025-03-03 23:22:29 +08:00
network
This commit is contained in:
parent
5c3cce7e08
commit
48db4a92b7
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user