This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: socket.cxx (recvmsg()) problem


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]