# 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 _IPY_ChinNethandle 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 try: import weakref weakref_proxy = weakref.proxy except: weakref_proxy = lambda x: x class IPY_ChNetHandleCallBack(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, IPY_ChNetHandleCallBack, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, IPY_ChNetHandleCallBack, name) __repr__ = _swig_repr def __init__(self, *args): if self.__class__ == IPY_ChNetHandleCallBack: args = (None,) + args else: args = (self,) + args this = _IPY_ChinNethandle.new_IPY_ChNetHandleCallBack(*args) try: self.this.append(this) except: self.this = this __swig_destroy__ = _IPY_ChinNethandle.delete_IPY_ChNetHandleCallBack __del__ = lambda self : None; def OnRecv(*args): return _IPY_ChinNethandle.IPY_ChNetHandleCallBack_OnRecv(*args) def OnDisconnect(*args): return _IPY_ChinNethandle.IPY_ChNetHandleCallBack_OnDisconnect(*args) def OnOutputLog(*args): return _IPY_ChinNethandle.IPY_ChNetHandleCallBack_OnOutputLog(*args) def __disown__(self): self.this.disown() _IPY_ChinNethandle.disown_IPY_ChNetHandleCallBack(self) return weakref_proxy(self) IPY_ChNetHandleCallBack_swigregister = _IPY_ChinNethandle.IPY_ChNetHandleCallBack_swigregister IPY_ChNetHandleCallBack_swigregister(IPY_ChNetHandleCallBack) class IPY_ChNetHandle(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, IPY_ChNetHandle, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, IPY_ChNetHandle, name) __repr__ = _swig_repr def __init__(self, *args): this = _IPY_ChinNethandle.new_IPY_ChNetHandle(*args) try: self.this.append(this) except: self.this = this __swig_destroy__ = _IPY_ChinNethandle.delete_IPY_ChNetHandle __del__ = lambda self : None; def Connect(*args): return _IPY_ChinNethandle.IPY_ChNetHandle_Connect(*args) def DisConnect(*args): return _IPY_ChinNethandle.IPY_ChNetHandle_DisConnect(*args) def IsActive(*args): return _IPY_ChinNethandle.IPY_ChNetHandle_IsActive(*args) def SetNetHandleCallBack(*args): return _IPY_ChinNethandle.IPY_ChNetHandle_SetNetHandleCallBack(*args) def Send(*args): return _IPY_ChinNethandle.IPY_ChNetHandle_Send(*args) def ProcessRecvQueue(*args): return _IPY_ChinNethandle.IPY_ChNetHandle_ProcessRecvQueue(*args) IPY_ChNetHandle_swigregister = _IPY_ChinNethandle.IPY_ChNetHandle_swigregister IPY_ChNetHandle_swigregister(IPY_ChNetHandle)