T
Tim
I have two java applications, one a client, the other a server.
The cient connects to the server and then they start transmitting data
back and forth.
If I run the server on Lunix/Unix, connecting via a remote client is
not a problem. However, if I am running the server on Windows XP, it
appears that the first string sent from the server to the client that
is not terminated with a \n causes both the client and the server to
Exception out on their respective sockets. This takes several minutes
and actually hoses network access on the XP mashine, requiring a
reboot to regain net access.
If I start the client up on the same machine as the server (still
using XP) and connect via 127.0.01 instead of the actual IP address,
evertyhing works just fine.
I have checked to ensure that there is no firewalling going on, and
this behaviour has been observed on more than one XP machine.
Any help would be appreciated.
Thanks,
Tim
Client connects rather simply.
sckConnection = new Sockect(address, port);
stmOut = new DataOutputStream(sckConnection.getOutputStream();
stmIn = new BufferedReader(new
InputStreamReader(sckConnection.getInputStream()));
stmOut.writeBytes("data\n");
Server also uses DataOutputStream and BufferedReader.
Server sends commands like the following:
stmOut.writeBytes(""+(char)3+"client message\n");
stmOut.writeBytes(""+(char)14);
I get 3 messages of the first type sent to the client (along with
responses sent back to the server) but the 14 doesn't seem to make it.
Client does the following to process input:
while (incoming != -1)
{
incoming = stmIn.read();
switch (incoming)
{
case 3:
addText(stmIn.readLine()+"\n");
case 14:
blnLoaded = true;
}
}
The cient connects to the server and then they start transmitting data
back and forth.
If I run the server on Lunix/Unix, connecting via a remote client is
not a problem. However, if I am running the server on Windows XP, it
appears that the first string sent from the server to the client that
is not terminated with a \n causes both the client and the server to
Exception out on their respective sockets. This takes several minutes
and actually hoses network access on the XP mashine, requiring a
reboot to regain net access.
If I start the client up on the same machine as the server (still
using XP) and connect via 127.0.01 instead of the actual IP address,
evertyhing works just fine.
I have checked to ensure that there is no firewalling going on, and
this behaviour has been observed on more than one XP machine.
Any help would be appreciated.
Thanks,
Tim
Client connects rather simply.
sckConnection = new Sockect(address, port);
stmOut = new DataOutputStream(sckConnection.getOutputStream();
stmIn = new BufferedReader(new
InputStreamReader(sckConnection.getInputStream()));
stmOut.writeBytes("data\n");
Server also uses DataOutputStream and BufferedReader.
Server sends commands like the following:
stmOut.writeBytes(""+(char)3+"client message\n");
stmOut.writeBytes(""+(char)14);
I get 3 messages of the first type sent to the client (along with
responses sent back to the server) but the 14 doesn't seem to make it.
Client does the following to process input:
while (incoming != -1)
{
incoming = stmIn.read();
switch (incoming)
{
case 3:
addText(stmIn.readLine()+"\n");
case 14:
blnLoaded = true;
}
}