Thanks for the info everyone.

Regards, Jacco

________________________________________
Van: Andrew Stitcher <[email protected]>
Verzonden: woensdag 20 maart 2019 04:46
Aan: [email protected]
Onderwerp: Re: How to use connection_driver

On Tue, 2019-03-19 at 23:15 -0400, Andrew Stitcher wrote:
> ...
> > > Can anyone tell me how to proceed? Are there examples that I
> > > simply
> > > haven't found yet? Or am I barking up entirely the wrong tree
> > > here?
> > > Any guidance would be appreciated.
>
> I don't think there is a current example using the connection_driver.
> But there is test code that you could look at - although it is not
> the
> easiet thing to understand.
>
> pn_test.cpp has a memory transport implementation that is implemented
> with 2 back to back connections drivers - this should give you some
> idea.

Actually there is a much better example in the test code:
fuzz_connection_driver.c.

This has almost exactly what you need - substitute your socket reading
code for fcd_read(); your socket writing code for fdc_write() and your
event handling code for handle().

Andrew


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to