Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

a problem with sockets

  Asked By: Alex    Date: May 14    Category: Java    Views: 567
  

I'm implementing a fairly simple client/server
application. I have encountered the following
problem. The client sends some information over a TCP
socket (writing to its DataOutputStream) then it tries
to read from its UDP socket but it gets nothing
because the server hasn't been able to receive the
information (which happens to be the port for the UDP
socket). When the receive on UDP finally times out,
the server gets information. The server is obviously
blocking and I think it has something to do with
buffering in the stream which means the bytes are not
being transfered over the TCP socket immediately.
Could someone suggest a more precise answer?

Share: 

 

No Answers Found. Be the First, To Post Answer.

 
Didn't find what you were looking for? Find more on a problem with sockets Or get search suggestion and latest updates.




Tagged: