[Consmgr-tech] Passing data/messages
Status: Alpha
Brought to you by:
cross
|
From: Chris R. <cr...@di...> - 2008-04-30 22:28:31
|
Okay. So, after a conversation yesterday, I decided to short-cut
the process and just repackage read data (in BiDirConn::reader) as a
message and enqueue it. So, the only thing in Messageable that reads
messages is Messageable::get_message, and nothing calls that. So,
clearly, the data never went anywhere.
We need to figure out where the hand-off should be. Either:
1) There should be a thread that watches for messages, and when
data messages come in re-queues them in some way for the writer thread
to see and write,
2) The writer needs to ask it's messageable half for messages that
are of the data type.
Either of these is doable, and while #2 seems simpler to code, it
may be the wrong answer longer term.
Input appreciated. I'm stopped at the moment.
- Chris
|