Use bind instead of connect in the pathopub example.

The pathopub example allows one to supply a URL, but
erroneously then calls connect instead of bind on
the URL. The mistake was made in all the programming
languages, in which the pathopub example was implemented.

This patch fixes all the implemented pathopub examples.