pcap.py :  » Network » python-libpcap » pylibpcap-0.6.2 » Python Open Source

Home
Python Open Source
1.3.1.2 Python
2.Ajax
3.Aspect Oriented
4.Blog
5.Build
6.Business Application
7.Chart Report
8.Content Management Systems
9.Cryptographic
10.Database
11.Development
12.Editor
13.Email
14.ERP
15.Game 2D 3D
16.GIS
17.GUI
18.IDE
19.Installer
20.IRC
21.Issue Tracker
22.Language Interface
23.Log
24.Math
25.Media Sound Audio
26.Mobile
27.Network
28.Parser
29.PDF
30.Project Management
31.RSS
32.Search
33.Security
34.Template Engines
35.Test
36.UML
37.USB Serial
38.Web Frameworks
39.Web Server
40.Web Services
41.Web Unit
42.Wiki
43.Windows
44.XML
Python Open Source » Network » python libpcap 
python libpcap » pylibpcap 0.6.2 » pcap.py
# This file was automatically generated by SWIG (http://www.swig.org).
# Version 1.3.33
#
# Don't modify this file, modify the SWIG interface instead.
# This file is compatible with both classic and new-style classes.

import _pcap
import new
new_instancemethod = new.instancemethod
try:
    _swig_property = property
except NameError:
    pass # Python < 2.2 doesn't have 'property'.
def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
    if (name == "thisown"): return self.this.own(value)
    if (name == "this"):
        if type(value).__name__ == 'PySwigObject':
            self.__dict__[name] = value
            return
    method = class_type.__swig_setmethods__.get(name,None)
    if method: return method(self,value)
    if (not static) or hasattr(self,name):
        self.__dict__[name] = value
    else:
        raise AttributeError("You cannot add attributes to %s" % self)

def _swig_setattr(self,class_type,name,value):
    return _swig_setattr_nondynamic(self,class_type,name,value,0)

def _swig_getattr(self,class_type,name):
    if (name == "thisown"): return self.this.own()
    method = class_type.__swig_getmethods__.get(name,None)
    if method: return method(self)
    raise AttributeError,name

def _swig_repr(self):
    try: strthis = "proxy of " + self.this.__repr__()
    except: strthis = ""
    return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)

import types
try:
    _object = types.ObjectType
    _newclass = 1
except AttributeError:
    class _object : pass
    _newclass = 0
del types


__doc__ = _pcap.__doc__
for dltname, dltvalue in _pcap.DLT.items():
  globals()[dltname] = dltvalue


class pcapObject(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, pcapObject, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, pcapObject, name)
    __repr__ = _swig_repr
    def __init__(self, *args): 
        import sys
        if int(sys.version[0])>='2':
            self.datalink.im_func.__doc__ = _pcap.pcapObject_datalink.__doc__
            self.fileno.im_func.__doc__ = _pcap.pcapObject_fileno.__doc__
            self.datalinks.im_func.__doc__ = _pcap.pcapObject_datalinks.__doc__
            self.major_version.im_func.__doc__ = _pcap.pcapObject_major_version.__doc__
            self.minor_version.im_func.__doc__ = _pcap.pcapObject_minor_version.__doc__
            self.stats.im_func.__doc__ = _pcap.pcapObject_stats.__doc__
            self.getnonblock.im_func.__doc__ = _pcap.pcapObject_getnonblock.__doc__
            self.open_live.im_func.__doc__ = _pcap.pcapObject_open_live.__doc__
            self.dispatch.im_func.__doc__ = _pcap.pcapObject_dispatch.__doc__
            self.setnonblock.im_func.__doc__ = _pcap.pcapObject_setnonblock.__doc__
            self.is_swapped.im_func.__doc__ = _pcap.pcapObject_is_swapped.__doc__
            self.open_dead.im_func.__doc__ = _pcap.pcapObject_open_dead.__doc__
            self.dump_open.im_func.__doc__ = _pcap.pcapObject_dump_open.__doc__
            self.next.im_func.__doc__ = _pcap.pcapObject_next.__doc__
            self.open_offline.im_func.__doc__ = _pcap.pcapObject_open_offline.__doc__
            self.snapshot.im_func.__doc__ = _pcap.pcapObject_snapshot.__doc__
            self.loop.im_func.__doc__ = _pcap.pcapObject_loop.__doc__
            self.setfilter.im_func.__doc__ = _pcap.pcapObject_setfilter.__doc__
        this = _pcap.new_pcapObject(*args)
        try: self.this.append(this)
        except: self.this = this
    def open_live(*args): return _pcap.pcapObject_open_live(*args)
    def open_dead(*args): return _pcap.pcapObject_open_dead(*args)
    def open_offline(*args): return _pcap.pcapObject_open_offline(*args)
    def dump_open(*args): return _pcap.pcapObject_dump_open(*args)
    def setnonblock(*args): return _pcap.pcapObject_setnonblock(*args)
    def getnonblock(*args): return _pcap.pcapObject_getnonblock(*args)
    def setfilter(*args): return _pcap.pcapObject_setfilter(*args)
    def loop(*args): return _pcap.pcapObject_loop(*args)
    def dispatch(*args): return _pcap.pcapObject_dispatch(*args)
    def next(*args): return _pcap.pcapObject_next(*args)
    def datalink(*args): return _pcap.pcapObject_datalink(*args)
    def datalinks(*args): return _pcap.pcapObject_datalinks(*args)
    def snapshot(*args): return _pcap.pcapObject_snapshot(*args)
    def is_swapped(*args): return _pcap.pcapObject_is_swapped(*args)
    def major_version(*args): return _pcap.pcapObject_major_version(*args)
    def minor_version(*args): return _pcap.pcapObject_minor_version(*args)
    def stats(*args): return _pcap.pcapObject_stats(*args)
    def fileno(*args): return _pcap.pcapObject_fileno(*args)
    __swig_destroy__ = _pcap.delete_pcapObject
    __del__ = lambda self : None;
pcapObject_swigregister = _pcap.pcapObject_swigregister
pcapObject_swigregister(pcapObject)

lookupdev = _pcap.lookupdev
findalldevs = _pcap.findalldevs
lookupnet = _pcap.lookupnet
aton = _pcap.aton
ntoa = _pcap.ntoa


www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.