hi,
i made a symbian client.in this client i connects to a server and i write a message.while i am writing a message to the server,if the GPRS connection is lost,how can i know whether the data is writen or not.
this is the code i am using
RSocketServ iSocketServ;
RSocket iSocket;
iSocketServ.Connect();
void CSocket::ConnectL()
{
TInetAddr addr;
if ( addr.Input( KDefaultServerName ) == KErrNone )
{
// server name is already a valid ip address
User::LeaveIfError( iSocket.Open( iSocketServ,
KAfInet,
KSockStream,
KProtocolInetTcp ) );
// Set up address information
iAddress.SetPort( KDefaultPortNumber );
iAddress.SetAddress( addr.Address() );
// Initiate socket connection
iSocket.Connect( iAddress, iStatus );
//writing to server
iSocket.Write(_L8("some temp"), iStatus );
}
}
how can i know whether the socket is connected or failed while connecting or failed while writing
can any onw help out in this.
Thanks and Regards,



