00001 # Copyright (C) 2008-2009 Mark Hanegraaff 00002 # 00003 # This program is free software: you can redistribute it and/or modify 00004 # it under the terms of the GNU General Public License as published by 00005 # the Free Software Foundation, either version 3 of the License, or 00006 # (at your option) any later version. 00007 # 00008 # This program is distributed in the hope that it will be useful, 00009 # but WITHOUT ANY WARRANTY; without even the implied warranty of 00010 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00011 # GNU General Public License for more details. 00012 # 00013 # You should have received a copy of the GNU General Public License 00014 # along with this program. If not, see <http://www.gnu.org/licenses/>. 00015 00016 00017 import ExtendedXportTable 00018 00019 ExtendedXportTable.updateV4Tables() 00020 size = ExtendedXportTable.getV4TableSize() 00021 00022 # Simple driver script for ExtendedXportTable 00023 #inject 10 errors 00024 for i in range(0, size + 10): 00025 try: 00026 print ExtendedXportTable.getV4ProcessName(i), ExtendedXportTable.getV4Tansport(i) 00027 except Exception, ex: 00028 print "Doh!: ", ex 00029 00030 00031 #inject an error 00032 try: 00033 print ExtendedXportTable.getV4ProcessName(20000) 00034 except Exception, ex: 00035 print "Doh!: ", ex 00036 00037
1.5.8