Skip to content

Handling protocol events in send-only applications. #13

Open
@GoogleCodeExporter

Description

@GoogleCodeExporter
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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions