Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SocketAddress address = new InetSocketAddress(SERVER_IP , SERVER_PORT);
- socket = new Socket();
- socket.setSoTimeout(1000);
- socket.setKeepAlive(true);
- socket.connect(address);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement