[ECOS] socket.cxx (recvmsg()) problem

Gary Thomas gary@mlbassoc.com
Wed Oct 31 11:19:00 GMT 2007


Alperen Coskun wrote:
> Hi all,
> 
> I want to understand how athttp server receives data from the socket. I followed the related functions till;
> 
> error = ops->recvmsg(fp,&msg,fromlen,&ret);
> 
> which is in the function recvfrom() in socket.cxx. After that, I couldn't find where that function call is.
> 
> It doesn't go to the function recvmsg() which is in socket.cxx. I searched for every recvmsg() functions in the packages but I couldn't find an appropriate one.
> 
> Could anyone help me?

Look at it carefully - the function being called is not 'recvmsg', but
rather the 'recvmsg' member of the structure pointed to by 'ops'.

To find the real function being called, you'd have to know what this
value/address is.

-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss



More information about the Ecos-discuss mailing list