Q:

How to make a remote pigpiod socket call?

The pigpio GPIO library seems to provide a mechanism to invoke the pigpiod demon remotely using TCP/IP sockets.  However, there appears to be some details missing.  For example:

Do we use a TCP or UDP socket?
How do we terminate sending a command?
How do we know when the response is received/terminated?

Do we have any sample apps using native socket APIs either in C or Java?
Later ...
Have started to reverse engineer code and it appears to be TCP sockets (AF_INET) ...

A:

pigpio daemon
C I/F to pigpio daemon
Socket commands and responses
Examples of usage (in the download):

from Python is pigpio.py
from C is pigs.c
from C is pigpiod_if.c
using C I/F to daemon is x_pigpiod_if.c

