def _create_skt(self):
        '''
        Create the authentication socket.
        '''
        log.debug('Creating the auth socket')
        if ':' in self.auth_address:
            self.socket = socket.socket(socket.AF_INET6, socket.SOCK_STREAM)
        else:
            self.socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
        try:
            self.socket.bind((self.auth_address, self.auth_port))
        except socket.error as msg:
            error_string = 'Unable to bind (auth) to port {} on {}: {}'.format(self.auth_port, self.auth_address, msg)
            log.error(error_string, exc_info=True)
            raise BindException(error_string)
def _create_skt ( self ) : log . debug ( 'Creating the auth socket' ) if ':' in self . auth_address : self . socket = socket . socket ( socket . AF_INET6 , socket . SOCK_STREAM ) else : self . socket = socket . socket ( socket . AF_INET , socket . SOCK_STREAM ) try : self . socket . bind ( ( self . auth_address , self . auth_port ) ) except socket . error as msg : error_string = 'Unable to bind (auth) to port {} on {}: {}' . format ( self . auth_port , self . auth_address , msg ) log . error ( error_string , exc_info = True ) raise BindException ( error_string )
Create the authentication socket.