I have developed a web based Java EE application. Recently I had a job to put extra functionality - to be able to send and receive messages to a TCP server which is programmed with .NET platform. Me and the other guy extended our systems so they can communicate and exchange bytes each other.
However there is a big problem and here it is:
It is almost impossible to make it work for more than a few hours without getting some socket I/O error. Sometimes the TCP server needs to be restarted, sometimes my web server gets restarted which shouldn't be a problem because when both servers are running they are pinging themselves with interval of 5 seconds and if a problem occurs the sockets are created again.
But as i mentioned it is almost impossible to exchange messages for more than a few hours without getting some arror.
Unfortunately i have no idea how the TCP server is working which is even more difficult for me to catch the source of the problem.
Is it really that complicated to use Sockets?
Actually i have to as a real question. So here it is:
Can you guys point me some tutorial ( not that simple one on sun's web site ) or tell me something more specific about sockets programming?