Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Where is the actual publishing done in the source code? #1896

Closed
KiriakosD opened this issue Sep 21, 2020 · 2 comments
Closed

Where is the actual publishing done in the source code? #1896

KiriakosD opened this issue Sep 21, 2020 · 2 comments

Comments

@KiriakosD
Copy link

KiriakosD commented Sep 21, 2020

I have been looking into the source code trying to figure out how exactly the publishing is done from a code perspective, but I am a little confused.

Is it done in the send_suspended_data function in the DataWriterImpl class?
I somehow had the impression that it is done in the PublisherImpl because in the Developers guide it is stated that "The data writer is responsible for marshaling the data and passing it to the publisher for transmission".

But it doesn't seem to be the case (although the send_suspended_data is called from within the PublisherImpl).

@KiriakosD
Copy link
Author

On a similar note, I assume that the data when using History and Durability QoS policies are also held in the Writer and not the Publisher, right?

Is it the InstanceDataSampleList and the DataDurabilityCache in the WriteDataContainer that hold these?

@KiriakosD KiriakosD changed the title Question: Where is the actual publishing done? Where is the actual publishing done in the source code? Sep 21, 2020
@mitza-oci
Copy link
Member

I'm not sure I'm following the question here. Using a debugger you can break when a socket send() function is called.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants