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.
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.