def StringToDoubleAddress(pString):
 parts = pString.split('.')
 if (len(parts) is not 4):
  raise LabJackException(0, 'IP address not correctly formatted')
 try:
  value = ((((int(parts[0]) << (8 * 3)) + (int(parts[1]) << (8 * 2))) + (int(parts[2]) << 8)) + int(parts[3]))
 except ValueError:
  raise LabJackException(0, 'IP address not correctly formatted')
 return value

def StringToDoubleAddress ( pString ) : parts = pString . split ( '.' ) if ( len ( parts ) is not 4 ) : raise LabJackException ( 0 , 'IP address not correctly formatted' ) try : value = ( ( ( ( int ( parts [ 0 ] ) << ( 8 * 3 ) ) + ( int ( parts [ 1 ] ) << ( 8 * 2 ) ) ) + ( int ( parts [ 2 ] ) << 8 ) ) + int ( parts [ 3 ] ) ) except ValueError : raise LabJackException ( 0 , 'IP address not correctly formatted' ) return value
converts an ip string to a number .