Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class NetworkListener extends Listener {
- public void connected(Connection c) {
- }
- public void disconnected(Connection c) {
- }
- public void recieved(Connection c, Object obj) {
- if(obj instanceof Packet00LoginRequest) {
- Packet01LoginAnswer loginAnswer = new Packet01LoginAnswer();
- loginAnswer.answer = "Login Success";
- c.sendTCP(loginAnswer);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement