Socket Connection Option

I am opening Socket Connection with a server. Upon the successful connection, I am waiting for some response in terms of data.

I have set the socket connection option like

socketConnection.setSocketOption(SocketConnection.DELAY,0)

In the read method I have passed array of 100 bytes. Now response data length may be variable but not exceed 100 bytes, depends upon request. Let抯 say I m getting 40 bytes as response.

Now if I run this program in emulator it works fine but on the device it doesn抰 work. On the device it waits for 60 bytes though it has already downloaded 40 bytes.

Method setSocketOption(byte option,int value) only supported on the emulator ?

Is there any difference in TCP stack implementation on device emulator and actual device?

[794 byte] By [himanshu17a] at [2007-10-3 4:28:36]
# 1
> Is there any difference in TCP stack implementation> on device emulator and actual device?Loads! The DELAY option is for writing only, so no use for reading data.Show us some code... Hard to say whats wrong now.
deepspacea at 2007-7-14 22:31:36 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 2
I think i have given full description
himanshu17a at 2007-7-14 22:31:36 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 3
show us your code use to retreive the response from the server, please.
suparenoa at 2007-7-14 22:31:36 > top of Java-index,Java Mobility Forums,Java ME Technologies...