• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Problem in Socket communications between two different OS

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have a particular problem wherein i am trying to send data through a Server Socket written in VB hosted on Windows NT OS.I have a client socket written in Java hosted on Weblogic application Server on Sun Solaris.This client Socket is running on a while true loop and whenever any data is available on the client socket it reads using the inputstream.read() method, what i am experiencing is that in very rare scenarios the data even after having been sent by the Server Socket is not being received on the client side.It seems it is not available on the socket itself to be read.To resolve this we padded each chunk of data being sent to be equal to 8192 bytes which is equal to the TCP/IP buffer size on any Windows NT machine,we still are facing the problem.
I would be very obliged if anyone can suggest a way to resolve this particular issue.
Regards
Vineet Venkatesh
 
author
Posts: 3252
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
First off, please change your display name to conform to our naming policy. Thanks.
Toughie. I suspect the two different OSs thing is a lark; it should work, different OSs or not. I know you tried to cover that already, but are you (a) sure the buffers always get flushed and (b) sure you're not blocking trying to read more data than is there? It's the best I can think of. You may have to use a low level TCP/IP or even IP or network level monitoring tool to get to the bottom of this.
- Peter
 
no wonder he is so sad, he hasn't seen this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic