Subject:
|
Re: is it possible to remove lnp_handler while running ?
|
Newsgroups:
|
lugnet.robotics.rcx.legos
|
Date:
|
Tue, 16 Jul 2002 16:55:04 GMT
|
Viewed:
|
2275 times
|
| |
| |
"kenneth johansen" <kennethj@stud.cs.uit.no> wrote in message
news:3D343FAA.17247640@stud.cs.uit.no...
> another dumb question about lnp:)
>
> i was wondering if it possible to do something like
> lnp_addressing_remove_handler(PORT,handler);
> as opposed to lnp_addressing_set_handler(PORT,handler);
>
> after much debugging i think i have traced my problem to the fact that
> lnp_addressing_write hangs if i recieve a message at the same time as i
> try to send.
>
> so i kinda wondered if theres any way to remove the handler for a while
> and then set it again.
>
> anyone know ?
>
> regards
> kenneth johansen
> kennethj@stud.cs.uit.no
>
>
I imagine you could just do something like
lnp_addressing_set_handler( PORT, (lnp_addressing_handler_t) NULL );
I'm also curious as to why lnp_addressing_write hangs for you... I don't
remember ever having problems with two bricks reading and writing
concurrently.
|
|
Message has 2 Replies:
Message is in Reply To:
5 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
This Message and its Replies on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|