PDA

View Full Version : Problem with sockets


amarevu
08-05-2002, 09:45 PM
Hi All,

I have written a client socket programe in BREW which connects to Java server code. My client logic is,

SockInit(struct pointer)
{
create INETMgr instance
create socket
Connect-with callback function
}

callbackfunction(void* cxt, int err)
{
write();
read();
}

write(void * cxt)
{
----
----

}

read(void *cxt)
{
ISOCKET_Read();
maniputlation with data.
}

i am able to connect the server and write to the server. But my probleme is, while receiving it is giving null value ever server sends the data. One surprising thing is while i the programme in Debug mode, If i put Breakpoint at before reading, i can see the read value in watch window. But if i put break point after reading i am unable to see the value that is sent by the server, instead it is showing null value in watch window. Can any one please help me out in this regard.

ThanQ in advance.
Amarnath Revuri.

arunbangari
08-09-2002, 08:20 AM
Hi amar,
Is the problem resolved? If not i would like to see your code. Sorry i could not reply you earlier as i was tied up with some work. If you still having problem mail me.

Arun Bangari