|
"Markus L. Noga" wrote:
> Hi Lou,
>
> I'm discussing datagram networking with Jacob Barrett currently. They
> have some people working on it.
Cool!
> The idea is to provide 1 byte of address space, using a per-host
> hostmask, just like TCP/IP uses per-net netmasks. A host with address
> 0x10 and hostmask 0xf0 would offer 16 ports, for example.
I had been thinking along the same lines.
> Thus, we could
> get by with this:
>
> ID TO FROM LENGTH ..... CHECKSUM(16 or 8 bit? probably 16)
What is the ID? Is it for framing? Is it a byte that is not currently
taken up by a Lego bytecode? Do we even care about colliding with Lego's
communication protocol?
> Tasks could register to receive messages from certain ports. But can
> that replace suspend/resume? I think not.
Suspend/resume is a different subject, isn't it? It has been suggested to
me that tasks could be suspended simply by changing their state to something
like "P_SUSPEND" (and changing the scheduler to deal with it). That is much
simpler than the way that I had been thinking of implementing it (with a
separate queue for suspended processes in each priority level). That's the
easy part, though. First, we would need signals.
I'd expect to wait for a datagram by doing the wait_event() thing. Either
explicitly or wrapped in a function which also grabs the datagram from my
task's point of view.
|
|
Message has 1 Reply: | | Re: Idle process
|
| (...) Yes, it's a start byte. Jacob suggested using 0xFn to identify protocol versions, 0xFF being the LEGO standard. (...) Actually, you wouldn't have to change much, just treat P_SUSPENDED tasks like they're P_WAITING and the condition failed. (...) (26 years ago, 20-Mar-99, to lugnet.robotics.rcx.legos)
|
Message is in Reply To:
| | Re: Idle process
|
| Hi Lou, I'm discussing datagram networking with Jacob Barrett currently. They have some people working on it. The idea is to provide 1 byte of address space, using a per-host hostmask, just like TCP/IP uses per-net netmasks. A host with address 0x10 (...) (26 years ago, 19-Mar-99, to lugnet.robotics.rcx.legos)
|
10 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
|
|
|
|