[BLACKBOX] CommStreams and V24

From: [at]} <Rainer>
Date: Mon, 20 Jun 2011 17:00:43 +0200

----boundary-LibPST-iamunique-272769057_-_-
Content-type: text/plain

Hi all,
in subsystem Comm there is a Module Streams for serial communication. Two procedures of this module (NewListener and NewStream) take as parameter the name of the serial protocol to be used. The demo modules ObxStreamsClient and ObxStreamsServer show an example using the TCP protocol.

Actually I don't really understand the intention of the module Streams. If it is to offer the same communication services using different protocols, how do I get it working with RS232 instead of TCP ?

E.g. passing the protocol name "CommV24" to CommStreams.NewListener will not work, because CommStreams.NewListener looks for a service "NewListener" offered by module "Comm24", which does not exist. So, do I have to create a new module sitting on top of CommV24 and implementing "NewListener" and "NewStream" in order to pass the name of the new module as parameter to CommStreams.NewListener ?

In my home project I'm currently working on I will have a serial communication to an external device. I would like to make the soffware adaptable to the type of communication to this device (TCP or RS232), because I then could replace the hardware device using RS232 by a simulator working with TCP.

Thanks for any help and best regards,
Rainer


----
To unsubscribe, send a message with body "SIGNOFF BLACKBOX" to LISTSERV{([at]})nowhere.xy----boundary-LibPST-iamunique-272769057_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciBOZXc7fQ0Ke1xmMlxmbmlsXGZjaGFy
c2V0MiBTeW1ib2w7fQ0Ke1xmM1xmbW9kZXJuXGZjaGFyc2V0MCBDb3VyaWVyIE5ldzt9fQ0Ke1xj
b2xvcnRibFxyZWQwXGdyZWVuMFxibHVlMDtccmVkMFxncmVlbjBcYmx1ZTI1NTt9DQpcdWMxXHBh
cmRccGxhaW5cZGVmdGFiMzYwIFxmMFxmczIwIEhpIGFsbCxccGFyDQppbiBzdWJzeXN0ZW0gQ29t
bSB0aGVyZSBpcyBhIE1vZHVsZSBTdHJlYW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gaW4gb3JkZXIgdG8gcGFzcyB0aGUgbmFtZSBvZiB0aGUgbmV3IG1vZHVsZSBhcyBwYXJhbWV0
ZXIgdG8gQ29tbVN0cmVhbXMuTmV3TGlzdGVuZXIgP1xwYXINClxwYXINCkluIG15IGhvbWUgcHJv
amVjdCBJJ20gY3VycmVudGx5IHdvcmtpbmcgb24gSSB3aWxsIGhhdmUgYSBzZXJpYWwgY29tbXVu
aWNhdGlvbiB0byBhbiBleHRlcm5hbCBkZXZpY2UuIEkgd291bGQgbGlrZSB0byBtYWtlIHRoZSBz
b2Zmd2FyZSBhZGFwdGFibGUgdG8gdGhlIHR5cGUgb2YgY29tbXVuaWNhdGlvbiB0byB0aGlzIGRl
dmljZSAoVENQIG9yIFJTMjMyKSwgYmVjYXVzZSBJIHRoZW4gY291bGQgcmVwbGFjZSB0aGUgaGFy
ZHdhcmUgZGV2aWNlIHVzaW5nIFJTMjMyIGJ5IGEgc2ltdWxhdG9yIHdvcmtpbmcgd2l0aCBUQ1Au
XHBhcg0KXHBhcg0KVGhhbmtzIGZvciBhbnkgaGVscCBhbmQgYmVzdCByZWdhcmRzLFxwYXINClJh
aW5lclxwYXINClxwYXINClxwYXINCi0tLS1ccGFyDQpUbyB1bnN1YnNjcmliZSwgc2VuZCBhIG1l
c3NhZ2Ugd2l0aCBib2R5ICJTSUdOT0ZGIEJMQUNLQk9YIiB0byBMSVNUU0VSVkBMSVNUUy5PQkVS
T04uQ0h9fQAtYXNj
----boundary-LibPST-iamunique-272769057_-_---
Received on Mon Jun 20 2011 - 17:00:43 UTC

This archive was generated by hypermail 2.3.0 : Thu Sep 26 2013 - 06:30:13 UTC