Open GoogleCodeExporter opened 9 years ago
I'll work on some additional documentation to cover this area. Update later.
Original comment by fnjo...@gmail.com
on 6 Oct 2011 at 10:04
Please consider reviewing the following articles:
http://openpgmdev.blogspot.com/2011/10/pgmiostatusnormal.html
http://openpgmdev.blogspot.com/2011/10/pgmiostatuswouldblock.html
http://openpgmdev.blogspot.com/2011/10/pgmiostatustimerpending.html
So a basic example of send NAKs would be:
pgm_sock_t* sock;
char buf[2000];
for (;;) {
int status = pgm_recv (sock, buf, sizeof (buf), 0, NULL, NULL);
if (PGM_IO_STATUS_NORMAL == status)
printf ("Received \"%s\"\n", buf);
}
NAK generation and re-transmission is all handled by the pgm_recv function call.
Original comment by fnjo...@gmail.com
on 7 Oct 2011 at 6:53
Original issue reported on code.google.com by
nenad_le...@yahoo.com
on 6 Oct 2011 at 9:51