当前位置: 动力学知识库 > 问答 > 编程问答 >

Can Java versions between server and client cause issues when dealing with sockets?

问题描述:

I have built a program that will perform some synchronization (parallel or interleaved), and I am seeing some funky issues which I think are related to java sockets.

What I am wondering is, if my server has different version(s) of java than my client, can that cause any problems. Problems such as a message not being sent through the socket?

Right now my server has multiple versions (32 bit and 64 bit), while my client has just one version (only 32bit). Could this seriously cause a problem where a socket could die or not send something through?

Please let me know if I am not descriptive enough, I will try to add more if I am being confusing.

Edit:

I am using all windows machines. However the server could be either win7 or win8. All clients are win8. This is how I'm sending information over my socket

protected PrintWriter out;

out = new PrintWriter(infoSocket.getOutputStream(), true);

out.println("success");

out.flush();

网友答案:

I wouldn't think so. A socket is standard low level network interface. It doesn't even care about the OS.

To verify, you might try running both client and server on the same machine, with the two different VM's versions. What might be a more likely problem are the differences on the machines (such as character encoding) or a general bug in the software.

分享给朋友:
您可能感兴趣的文章:
随机阅读: