I'm working on a mutliplayer game. So far I got it working with Socket and ServerSocket. But its slow over internet. It takes 1-2 sec to write something in the chat. Someone said I should use...
Type: Posts; User: moon_werewolf
I'm working on a mutliplayer game. So far I got it working with Socket and ServerSocket. But its slow over internet. It takes 1-2 sec to write something in the chat. Someone said I should use...
Thanks. It helped me locate the problem. In the Player.java I had this code private static Socket socket; which sould have been this private Socket socket;
This is what i have in the main server class.
public void run()
{
while(true)
{
Socket join = null;
try
I'm working on my first maultiplayer game in java. But I have a problem. Only the latest connected socket get any data, and I have no idea why. I tried to make a loop that would send the collected...
I have been programing a multiplayer game and have been running in to a problem
This code closes the socket
out = p.getSocket().getOutputStream();
ZipOutputStream mZip = new...