Posts by JLuann • 95 points
4 posts
-
2
votes1
answer89
viewsQ: What’s the difference between creating a Socket via Socketfactory and creating one with new Socket?
I was studying about Sockets and saw that some people created sockets with Socketfactory (javax). I’ve always created like this: Socket skt = new Socket(host, port); In the example I was like this:…
-
1
votes3
answers240
viewsA: How to know which servers are waiting for connection on my network?
I managed to solve my problem by making a few edits in a example that I used as a basis. Code: public void checkHosts(String subnet) throws IOException { for (int i = 1; i < 255; i++) { String…
-
2
votes3
answers240
viewsQ: How to know which servers are waiting for connection on my network?
I’m developing a multiplayer (LAN) game with Sockets in JAVA. Players will start a lobby, and in this lobby there will be a list of servers (game rooms) waiting for connections. How can I list the…
-
4
votes1
answer366
views