Logo Search packages:      
Sourcecode: yum-utils version File versions  Download package

def fastestmirror::PollThread::__init__ (   self,
  parent,
  mirror 
)
It is initiliazer function for B{L{PollThread}} class. This function
initiliazes the service ports for different webservices.

@param parent : The parent class.
@type parent : Class
@param mirror : The mirror of a repository.
@type mirror : String

Definition at line 429 of file fastestmirror.py.

                                      :
        """
        It is initiliazer function for B{L{PollThread}} class. This function
        initiliazes the service ports for different webservices.

        @param parent : The parent class.
        @type parent : Class
        @param mirror : The mirror of a repository.
        @type mirror : String
        """
        threading.Thread.__init__(self)
        self.parent = parent
        self.mirror = mirror
        self.host = host(mirror)
        uService = urlparse.urlparse(mirror)[0]
        if uService == "http":
            self.port = 80
        elif uService == "https":
            self.port = 443
        elif uService == "ftp":
            self.port = 21
        elif uService == "file":
            self.host = "127.0.0.1"
        else:
            self.port = -2


Generated by  Doxygen 1.6.0   Back to index