fixes incorrect socket.send usage in PBC connection.

This fixes #381