[openbeosnetteam] libnetapi.so progress

Hi guys.

I work a little on completing libnetapi.so.
Alexandre Bique offered me last week to implement NetEndpoint.cpp. 
He did it quickly, but alas without any binary compatibility in mind.

However, his contribution awake me about this task, and I try to 
correct his implementation.
It's now into CVS, and we now build a libnetapi.so that I still need to 
check compatibility with R5's one.

In the process, I noticed that BNetEndpoint class, and the Nettle's 
NLEndpoint which  worked behind her in R5, assert AF_INET family 
endpoints. 
I think it's wrong, now that our stack support more families, starting 
with PF_ROUTE one.

That's why I've introduced a new BNetEndpoint constructor:
BNetEndpoint(int family, int type, int protocol);

AFAIK, constructors don't count on class size, as they are not virtual, 
right?
What do you think?

"Too early, better to fix your broken implementation" ?
Okay, I hear you guys! ;-)

- Philippe

--
Fortune Cookie Says:

"Man invented language to satisfy his deep need to complain."
                -- Lily Tomlin

Other related posts: