Advertisement
Guest User

Untitled

a guest
Apr 29th, 2016
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.24 KB | None | 0 0
  1. SocketAddress address = new InetSocketAddress(SERVER_IP , SERVER_PORT);
  2.            
  3.             socket = new Socket();
  4.             socket.setSoTimeout(1000);
  5.             socket.setKeepAlive(true);
  6.             socket.connect(address);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement