I'm trying to talk over with the DarwinStreamingServer (RTSP).

SocketConnection sc = (SocketConnection)Connector.open(socket://;

InputStream is = sc.openInputStream();
OutputStream os = sc.openOutputStream();

I can write a message, but I can't receive the answer without to know how many byte I need to read.
Neither is.available() nor while((b = is.read()) != -1){...}
works on Nokia.

I must do something like this:
while(l < lengthOfTheBeforeSniffedAnswer){

Could you please help me?