Call appropriate sockname function for socket type
Call appropriate sockname function for socket type

COUCHDB: 3049

fkaempfer/couchdb,fkaempfer/couchdb,fkaempfer/couchdb,fkaempfer/couchdb,fkaempfer/couchdb,fkaempfer/couchdb