Make it possible to change the port number of the PacketServer
This commit is contained in:
parent
043010aad3
commit
8d93157ac0
4 changed files with 10 additions and 8 deletions
|
@ -8,7 +8,7 @@ void main() async {
|
|||
reg.registerDefaults();
|
||||
|
||||
PacketClient client = PacketClient();
|
||||
await client.startConnect("127.0.0.1");
|
||||
await client.startConnect("127.0.0.1", 25306);
|
||||
|
||||
S2CResponse response = await client.send(C2SPing(), true);
|
||||
CompoundTag tag = response.contents;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import 'package:libac_dart/packets/packets.dart';
|
||||
|
||||
void main() async {
|
||||
await PacketServer.start();
|
||||
await PacketServer.start(25306);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue