Hey, it gets stuck in the while loop...
if (in.ready()){
System.out.println("in ready...");
String string = "";
int chr = in.read();
while (chr != -1){
string +=...
Type: Posts; User: d4dev
Hey, it gets stuck in the while loop...
if (in.ready()){
System.out.println("in ready...");
String string = "";
int chr = in.read();
while (chr != -1){
string +=...
The problem is, I already did that and it did say ping... in the client, and in the server the while loop was running... I'll try it again.
Okay, I made it so it can compile.
server
clientaccepter.java, accepts incoming connections
package server;
import java.io.IOException;
import java.net.ServerSocket;
import...
Ok, but I have to go in a hurry now, forgot the time. Ill make a compiling version later.
Why whould you need to compile it? I really do think it's something little I've looked over since it almost always is... And it doesn't give an error or so, it just never says anything in the server...
Did that, all other code is still visible in the github.
Hello
I am currently making a game in java for a school project, but I have got a problem. I am currently trying to set up an online connection system, that pings to see if the connection is still...