Fix for bind / connect / send problem.

This patch fixes #223.