File tree Expand file tree Collapse file tree 4 files changed +0
-37
lines changed
nexo-net-test/src/main/java/com/nexoscript Expand file tree Collapse file tree 4 files changed +0
-37
lines changed Original file line number Diff line number Diff line change @@ -99,7 +99,6 @@ public class MyServer {
9999 CryptoManager cryptoManager = new CryptoManager (server. getLogger());
100100 cryptoManager. initCrypto(" secret.key" , CryptoType . AES , KeySize . KEY_256 );
101101 server. getPacketManager(). registerPacketType(" MESSAGE_PACKET" , MessagePacket . class);
102- server. getPacketManager(). registerPacketType(" BYTES_PACKET" , BytePacket . class);
103102 server. onClientConnect(client - > {
104103 System . out. println(" Client connected with ID: " + client. getId());
105104 MessagePacket messagePacket = new MessagePacket (cryptoManager. encryptString(command[2 ]));
@@ -181,7 +180,6 @@ public class MyClient {
181180 CryptoManager cryptoManager = new CryptoManager (client. getLogger());
182181 cryptoManager. initCrypto(" secret.key" , CryptoType . AES , KeySize . KEY_256 );
183182 client. getPacketManager(). registerPacketType(" MESSAGE_PACKET" , MessagePacket . class);
184- client. getPacketManager(). registerPacketType(" BYTES_PACKET" , BytePacket . class);
185183 client. onClientConnect(iClient - > {
186184 System . out. println(" Client connected with ID: " + iClient. getID());
187185 MessagePacket messagePacket = new MessagePacket (cryptoManager. encryptString(command[1 ]));
Original file line number Diff line number Diff line change 44import com .nexoscript .nexonet .api .crypto .KeySize ;
55import com .nexoscript .nexonet .client .Client ;
66import com .nexoscript .nexonet .packet .crypto .CryptoManager ;
7- import com .nexoscript .packets .BytePacket ;
87import com .nexoscript .packets .MessagePacket ;
98
109import java .util .Scanner ;
@@ -33,7 +32,6 @@ public static void main(String[] args) {
3332 }
3433 });
3534 client .getPacketManager ().registerPacketType ("MESSAGE_PACKET" , MessagePacket .class );
36- client .getPacketManager ().registerPacketType ("BYTES_PACKET" , BytePacket .class );
3735 client .onClientConnect (iClient -> {
3836 System .out .println ("Client connected with ID: " + iClient .getID ());
3937 });
Original file line number Diff line number Diff line change 44import com .nexoscript .nexonet .api .crypto .KeySize ;
55import com .nexoscript .nexonet .packet .crypto .CryptoManager ;
66import com .nexoscript .nexonet .server .Server ;
7- import com .nexoscript .packets .BytePacket ;
87import com .nexoscript .packets .MessagePacket ;
98
109import java .util .Scanner ;
@@ -35,7 +34,6 @@ public static void main(String[] args) {
3534 }
3635 });
3736 server .getPacketManager ().registerPacketType ("MESSAGE_PACKET" , MessagePacket .class );
38- server .getPacketManager ().registerPacketType ("BYTES_PACKET" , BytePacket .class );
3937 server .onClientConnect (client -> {
4038 System .out .println ("Client connected with ID: " + client .getId ());
4139 });
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments