Logo Search packages:      
Sourcecode: belier version File versions  Download package

def belier::optionstunnel::OptionsTunnel::parse_ligne (   self,
  ligne 
)

Parse la ligne qui indique les numéros de ports

Definition at line 30 of file optionstunnel.py.

00030                                 :
        """Parse la ligne qui indique les numéros de ports"""
        if len(ligne.split()) != 2:
            print _('You should have two tunnel options arguments \
(source port and destination port)')
            sys.exit(1)
        for port in ligne.split():
            if not port.isdigit():
                print _('A port number should only contain digits')
                sys.exit(1)
            if int(port) > 65535:
                print _('A port number can not exceed 65535')
                sys.exit(1)
        self._source, self._destination = ligne.split()

    def retourne_options(self):


Generated by  Doxygen 1.6.0   Back to index