Support for binding internal handlers to mdp ports
Refactor socket name and address length handling