'The factory method of SocketHandler is here overridden to create
a UDP socket (SOCK_DGRAM).'

def makeSocket(self):

    if (self.port is None):
        family = socket.AF_UNIX
    else:
        family = socket.AF_INET
    s = socket.socket(family, socket.SOCK_DGRAM)
    return s
