ESock_Client 14 : Descriptor parameter error

Login to reply to this topic.
Thu, 2006-12-14 12:50
Joined: 2006-08-21
Forum posts: 39
Hi,

In my app i've a socket server listening on some port.
Client sends an URL to my server. When socket server
receives data i pass incomming data to observer and keep
listening for more incomming data from connected client.

smth like this:

void CSocketEngine::RunL()
{

    if (iStatus == KErrNone)
    {
         iObserver.HandleUrl(iBuffer);
         IssueReceive(); // Issue socket.RecvOnceOrMore() again
    }



In Observer's HandleUrl(......)    i'm starting a socket base http engine to download image from web server.

Both engines (Socket server, and socket based http client)
are AO.

upto here all goes fine.

I get : ESock_Client 14 : Descriptor parameter error
when socket client disconnects from server or sends
another url Sad

Could any1 explain me a bit whats wrong?

Thanks ahead!!

Fri, 2007-01-19 11:38
Forum Nokia Champion
Joined: 2004-08-31
Forum posts: 30
Re: ESock_Client 14 : Descriptor parameter error
I have received the ESock_Client 14 panic if I open/close the RSocketServ/RConnection/RSocket objects in the wrong order. You have to make sure that you always open and close them in the right order, and that you don't try to use a closed object.
Sun, 2007-01-21 20:44
Joined: 2006-05-08
Forum posts: 152
Re: ESock_Client 14 : Descriptor parameter error
You normally get ESock_Client 14 if you have passed in an invalid descriptor to async ESock methods that Write/Read data on a socket/hostresolver.

Make sure that whatever buffer you are using remain valid during the lifetime of the any async Esock function using the buffer.
  • Login to reply to this topic.