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?