add domain support for Socket