Advertisement
Guest User

Untitled

a guest
Feb 11th, 2020
222
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1.  
  2. import jsc.kennel.ChatServer;
  3.  
  4. /**
  5. *
  6. * @author jince
  7. */
  8. public class SeverStart {
  9. String address = "127.0.0.1";
  10. int port = 13456;
  11. ChatServer server;
  12. public SeverStart() {
  13. try {
  14. server = new ChatServer("server", port);
  15. server.start();
  16.  
  17. } catch (Exception e) {
  18. System.out.println(e);
  19. }
  20. }
  21. public static void main(String args[]) {
  22.  
  23. new SeverStart();
  24. }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement