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

Handling protocol events in send-only applications. #13

Open
GoogleCodeExporter opened this issue Mar 15, 2015 · 1 comment
Open

Handling protocol events in send-only applications. #13

GoogleCodeExporter opened this issue Mar 15, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

What is the recommended way of handling protocol events in a send-only 
application?

Suppose I have a publishing thread that sends some data in a loop. According to 
the docs I must also call one of the receive functions periodically in order to 
advance the pgm state machine. Would it be acceptable if I have a separate 
thread that just calls one of the receive functions in a loop (on the same 
socket)? Will a blocking call do in this case?

void evenProcessinfThread()
{
  for(;;)
  {
    pgm_recv(...);
  }
}

What version of the product are you using? On what operating system?
libpgm-5.1.118

Original issue reported on code.google.com by [email protected] on 25 Jan 2012 at 5:22

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

1 participant