This is the mail archive of the ecos-discuss@sources.redhat.com 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]

Re: gethostbyname


Andrew Lunn wrote:
> 
> > Actually, it shouldn't use any private interfaces - only public ones, so it
> > should live in its own package. That way different network stacks (e.g. the
> > mini one RedBoot uses) can use it.
> 
> Hummm. Does redboot provide BSD sockets?

Not with exactly the same API, but we can make it work. It's only UDP - you
can make a socket and use a recvfrom and sendto.

> A kernel so i can use mutex,
> per thread data? I think not.

You don't need per thread data for RedBoot - those would just be configured
out.
 
> Quite a few of the functions inside the lib directory do not use
> private interface. getserbyname, gethost, all the bootp stuff since it
> uses ioctl, the tftp server and client code, inet_addr etc. Why is
> this not in a generic package?

Inertia?

Jifl
-- 
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine


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