Re: [BLACKBOX] CommStreams and V24
----boundary-LibPST-iamunique-1038804875_-_-
Content-type: text/plain
Rainer,
I believe the intent of Comm is for interacting with the Internet and not
local serial ports.
-Doug
On 6/20/2011 8:00 AM, Rainer Neubauer wrote:
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
---- To unsubscribe, send a message with body "SIGNOFF BLACKBOX" to LISTSERV{([at]})nowhere.xy
----boundary-LibPST-iamunique-1038804875_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbWh0bWwxIFxkZWZmMHtcZm9udHRibA0Ke1xmMFxm
c3dpc3MgQXJpYWw7fQ0Ke1xmMVxmbW9kZXJuIENvdXJpZXIgTmV3O30NCntcZjJcZm5pbFxmY2hh
cnNldDIgU3ltYm9sO30NCntcZjNcZm1vZGVyblxmY2hhcnNldDAgQ291cmllciBOZXc7fX0NCntc
Y29sb3J0YmxccmVkMFxncmVlbjBcYmx1ZTA7XHJlZDBcZ3JlZW4wXGJsdWUyNTU7fQ0KXHVjMVxw
YXJkXHBsYWluXGRlZnRhYjM2MCBcZ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nN1YnNjcmliZSwgc2VuZCBhIG1lc3NhZ2Ugd2l0
aCBib2R5ICJTSUdOT0ZGIEJMQUNLQk9YIiB0byBMSVNUU0VSVkBMSVNUUy5PQkVST04uQ0gNCntc
KlxodG1sdGFnNCBccGFyIH1caHRtbHJ0ZiAgXGh0bWxydGYwIFxodG1scnRmfX0AOkJMQUNLQk9Y
LXJlcXU=
----boundary-LibPST-iamunique-1038804875_-_---
Received on Mon Jun 20 2011 - 21:57:20 UTC
This archive was generated by hypermail 2.3.0
: Thu Sep 26 2013 - 06:30:13 UTC