[openbeosnetteam] Re: net_server
- From: "Philippe Houdoin" <philippe.houdoin@xxxxxxx>
- To: openbeosnetteam@xxxxxxxxxxxxx
- Date: Tue, 21 Oct 2003 23:36:07 GMT
> Hi,
> when was the net_server (testing server) used the last time?
Good question. Aas there is several net_server jam targets, some
obsoletes some not up to date,
it's hard to tell quickly.
Anyway, I'll try:
- src/servers/net/* version is a very old one, now obsoleted and aging
from 2 years now, and should not be built anymore. It should have been
disabled from build system since 11 month... I should remove these
files one day.
- src/tests/servers/net/net_server/* is the one that should build fine
today.
However, this new one is not usable today, as all the src/add-ons/
kernel/network/* add-ons modules source code
should be compiled as userland add-ons and linked against this
net_server... er, net_stack_tester binary instead of
_KERNEL_.
I didn't find the time to fix the src/tests/servers/net/net_server/add-
ons/* jamfiles to do this right, but
I guess looking at some src/tests/add-ons/kernel/disk_scanner/*
jamfiles could help to fix that.
> It does not compile. The int_args structure is defined nowhere.
> Should it be stack_driver_args?
Maybe I forgot to remove the src/servers/net/* from build system, but
this (old) net_server implementation is broken, yes, and not only on
this int_args issue.
Please use instead src/tests/servers/net/net_server/*
> How do I get libnet.so to use /dev/net/server instead of /dev/net/
> stack?
> Is there some flag (you wrote it, I am too lazy to dive into the
> source)?
An environment variable:
$ export NET_STACK_DRIVER_PATH=/dev/net/server
By default, the /dev/net/stack path is used.
That way, one can switch at runtime witch stack (kernel-hosted or
net_server-hosted) stack he want to use/test against.
Just for memory, this trick can be saw in src/kits/network/libnet/
socket.c::get_stack_driver_path().
- Philippe
--
Fortune Cookie Says:
Conscious is when you are aware of something and conscience is when you
wish you weren't.
- References:
- [openbeosnetteam] net_server
- From: Waldemar Kornewald
Other related posts:
- » [openbeosnetteam] net_server
- » [openbeosnetteam] Re: net_server
- » [openbeosnetteam] Re: net_server
- » [openbeosnetteam] Re: net_server
- » [openbeosnetteam] Re: net_server
- » [openbeosnetteam] Re: net_server
- » [openbeosnetteam] Re: net_server
- [openbeosnetteam] net_server
- From: Waldemar Kornewald