This file is indexed.

/usr/lib/python2.7/dist-packages/PreludeEasy.py is in python-prelude 1.0.0-11.7ubuntu1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
# This file was automatically generated by SWIG (http://www.swig.org).
# Version 3.0.8
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.





from sys import version_info
if version_info >= (2, 6, 0):
    def swig_import_helper():
        from os.path import dirname
        import imp
        fp = None
        try:
            fp, pathname, description = imp.find_module('_PreludeEasy', [dirname(__file__)])
        except ImportError:
            import _PreludeEasy
            return _PreludeEasy
        if fp is not None:
            try:
                _mod = imp.load_module('_PreludeEasy', fp, pathname, description)
            finally:
                fp.close()
            return _mod
    _PreludeEasy = swig_import_helper()
    del swig_import_helper
else:
    import _PreludeEasy
del version_info
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__ == 'SwigPyObject':
            self.__dict__[name] = value
            return
    method = class_type.__swig_setmethods__.get(name, None)
    if method:
        return method(self, value)
    if (not static):
        if _newclass:
            object.__setattr__(self, name, value)
        else:
            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_nondynamic(self, class_type, name, static=1):
    if (name == "thisown"):
        return self.this.own()
    method = class_type.__swig_getmethods__.get(name, None)
    if method:
        return method(self)
    if (not static):
        return object.__getattr__(self, name)
    else:
        raise AttributeError(name)

def _swig_getattr(self, class_type, name):
    return _swig_getattr_nondynamic(self, class_type, name, 0)


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

try:
    _object = object
    _newclass = 1
except AttributeError:
    class _object:
        pass
    _newclass = 0


class SwigPyIterator(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, SwigPyIterator, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, SwigPyIterator, name)

    def __init__(self, *args, **kwargs):
        raise AttributeError("No constructor defined - class is abstract")
    __repr__ = _swig_repr
    __swig_destroy__ = _PreludeEasy.delete_SwigPyIterator
    __del__ = lambda self: None

    def value(self):
        return _PreludeEasy.SwigPyIterator_value(self)

    def incr(self, n=1):
        return _PreludeEasy.SwigPyIterator_incr(self, n)

    def decr(self, n=1):
        return _PreludeEasy.SwigPyIterator_decr(self, n)

    def distance(self, x):
        return _PreludeEasy.SwigPyIterator_distance(self, x)

    def equal(self, x):
        return _PreludeEasy.SwigPyIterator_equal(self, x)

    def copy(self):
        return _PreludeEasy.SwigPyIterator_copy(self)

    def next(self):
        return _PreludeEasy.SwigPyIterator_next(self)

    def __next__(self):
        return _PreludeEasy.SwigPyIterator___next__(self)

    def previous(self):
        return _PreludeEasy.SwigPyIterator_previous(self)

    def advance(self, n):
        return _PreludeEasy.SwigPyIterator_advance(self, n)

    def __eq__(self, x):
        return _PreludeEasy.SwigPyIterator___eq__(self, x)

    def __ne__(self, x):
        return _PreludeEasy.SwigPyIterator___ne__(self, x)

    def __iadd__(self, n):
        return _PreludeEasy.SwigPyIterator___iadd__(self, n)

    def __isub__(self, n):
        return _PreludeEasy.SwigPyIterator___isub__(self, n)

    def __add__(self, n):
        return _PreludeEasy.SwigPyIterator___add__(self, n)

    def __sub__(self, *args):
        return _PreludeEasy.SwigPyIterator___sub__(self, *args)
    def __iter__(self):
        return self
SwigPyIterator_swigregister = _PreludeEasy.SwigPyIterator_swigregister
SwigPyIterator_swigregister(SwigPyIterator)


def CheckVersion(version=None):
    return _PreludeEasy.CheckVersion(version)
CheckVersion = _PreludeEasy.CheckVersion
class PreludeLog(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, PreludeLog, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, PreludeLog, name)
    __repr__ = _swig_repr
    DEBUG = _PreludeEasy.PreludeLog_DEBUG
    INFO = _PreludeEasy.PreludeLog_INFO
    WARNING = _PreludeEasy.PreludeLog_WARNING
    ERROR = _PreludeEasy.PreludeLog_ERROR
    CRITICAL = _PreludeEasy.PreludeLog_CRITICAL
    QUIET = _PreludeEasy.PreludeLog_QUIET
    SYSLOG = _PreludeEasy.PreludeLog_SYSLOG
    __swig_getmethods__["SetLevel"] = lambda x: _PreludeEasy.PreludeLog_SetLevel
    if _newclass:
        SetLevel = staticmethod(_PreludeEasy.PreludeLog_SetLevel)
    __swig_getmethods__["SetDebugLevel"] = lambda x: _PreludeEasy.PreludeLog_SetDebugLevel
    if _newclass:
        SetDebugLevel = staticmethod(_PreludeEasy.PreludeLog_SetDebugLevel)
    __swig_getmethods__["SetFlags"] = lambda x: _PreludeEasy.PreludeLog_SetFlags
    if _newclass:
        SetFlags = staticmethod(_PreludeEasy.PreludeLog_SetFlags)
    __swig_getmethods__["GetFlags"] = lambda x: _PreludeEasy.PreludeLog_GetFlags
    if _newclass:
        GetFlags = staticmethod(_PreludeEasy.PreludeLog_GetFlags)
    __swig_getmethods__["SetLogfile"] = lambda x: _PreludeEasy.PreludeLog_SetLogfile
    if _newclass:
        SetLogfile = staticmethod(_PreludeEasy.PreludeLog_SetLogfile)
    __swig_getmethods__["SetCallback"] = lambda x: _PreludeEasy.PreludeLog_SetCallback
    if _newclass:
        SetCallback = staticmethod(_PreludeEasy.PreludeLog_SetCallback)

    def __init__(self):
        this = _PreludeEasy.new_PreludeLog()
        try:
            self.this.append(this)
        except Exception:
            self.this = this
    __swig_destroy__ = _PreludeEasy.delete_PreludeLog
    __del__ = lambda self: None
PreludeLog_swigregister = _PreludeEasy.PreludeLog_swigregister
PreludeLog_swigregister(PreludeLog)

def PreludeLog_SetLevel(level):
    return _PreludeEasy.PreludeLog_SetLevel(level)
PreludeLog_SetLevel = _PreludeEasy.PreludeLog_SetLevel

def PreludeLog_SetDebugLevel(level):
    return _PreludeEasy.PreludeLog_SetDebugLevel(level)
PreludeLog_SetDebugLevel = _PreludeEasy.PreludeLog_SetDebugLevel

def PreludeLog_SetFlags(flags):
    return _PreludeEasy.PreludeLog_SetFlags(flags)
PreludeLog_SetFlags = _PreludeEasy.PreludeLog_SetFlags

def PreludeLog_GetFlags():
    return _PreludeEasy.PreludeLog_GetFlags()
PreludeLog_GetFlags = _PreludeEasy.PreludeLog_GetFlags

def PreludeLog_SetLogfile(filename):
    return _PreludeEasy.PreludeLog_SetLogfile(filename)
PreludeLog_SetLogfile = _PreludeEasy.PreludeLog_SetLogfile

def PreludeLog_SetCallback(log_cb):
    return _PreludeEasy.PreludeLog_SetCallback(log_cb)
PreludeLog_SetCallback = _PreludeEasy.PreludeLog_SetCallback

class PreludeError(Exception):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, PreludeError, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, PreludeError, name)
    __repr__ = _swig_repr
    __swig_destroy__ = _PreludeEasy.delete_PreludeError
    __del__ = lambda self: None

    def __init__(self, *args):
        this = _PreludeEasy.new_PreludeError(*args)
        try:
            self.this.append(this)
        except Exception:
            self.this = this

    def what(self):
        return _PreludeEasy.PreludeError_what(self)

    def __str__(self):
        return _PreludeEasy.PreludeError___str__(self)
PreludeError_swigregister = _PreludeEasy.PreludeError_swigregister
PreludeError_swigregister(PreludeError)

class Connection(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, Connection, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, Connection, name)
    __repr__ = _swig_repr
    __swig_destroy__ = _PreludeEasy.delete_Connection
    __del__ = lambda self: None

    def __init__(self, *args):
        this = _PreludeEasy.new_Connection(*args)
        try:
            self.this.append(this)
        except Exception:
            self.this = this

    def GetConnection(self):
        return _PreludeEasy.Connection_GetConnection(self)

    def Close(self):
        return _PreludeEasy.Connection_Close(self)

    def Connect(self, cp, permission):
        return _PreludeEasy.Connection_Connect(self, cp, permission)

    def SetState(self, state):
        return _PreludeEasy.Connection_SetState(self, state)

    def GetState(self):
        return _PreludeEasy.Connection_GetState(self)

    def SetData(self, data):
        return _PreludeEasy.Connection_SetData(self, data)

    def GetData(self):
        return _PreludeEasy.Connection_GetData(self)

    def GetPermission(self):
        return _PreludeEasy.Connection_GetPermission(self)

    def SetPeerAnalyzerid(self, analyzerid):
        return _PreludeEasy.Connection_SetPeerAnalyzerid(self, analyzerid)

    def GetPeerAnalyzerid(self):
        return _PreludeEasy.Connection_GetPeerAnalyzerid(self)

    def GetLocalAddr(self):
        return _PreludeEasy.Connection_GetLocalAddr(self)

    def GetLocalPort(self):
        return _PreludeEasy.Connection_GetLocalPort(self)

    def GetPeerAddr(self):
        return _PreludeEasy.Connection_GetPeerAddr(self)

    def GetPeerPort(self):
        return _PreludeEasy.Connection_GetPeerPort(self)

    def IsAlive(self):
        return _PreludeEasy.Connection_IsAlive(self)

    def GetFd(self):
        return _PreludeEasy.Connection_GetFd(self)

    def RecvIDMEF(self):
        return _PreludeEasy.Connection_RecvIDMEF(self)
Connection_swigregister = _PreludeEasy.Connection_swigregister
Connection_swigregister(Connection)

class ConnectionPool(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, ConnectionPool, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, ConnectionPool, name)
    __repr__ = _swig_repr
    __swig_destroy__ = _PreludeEasy.delete_ConnectionPool
    __del__ = lambda self: None

    def __init__(self, *args):
        this = _PreludeEasy.new_ConnectionPool(*args)
        try:
            self.this.append(this)
        except Exception:
            self.this = this

    def Init(self):
        return _PreludeEasy.ConnectionPool_Init(self)

    def SetConnectionString(self, str):
        return _PreludeEasy.ConnectionPool_SetConnectionString(self, str)

    def GetConnectionString(self):
        return _PreludeEasy.ConnectionPool_GetConnectionString(self)

    def GetConnectionList(self):
        return _PreludeEasy.ConnectionPool_GetConnectionList(self)

    def SetFlags(self, flags):
        return _PreludeEasy.ConnectionPool_SetFlags(self, flags)

    def GetFlags(self):
        return _PreludeEasy.ConnectionPool_GetFlags(self)

    def SetData(self, data):
        return _PreludeEasy.ConnectionPool_SetData(self, data)

    def GetData(self):
        return _PreludeEasy.ConnectionPool_GetData(self)

    def AddConnection(self, con):
        return _PreludeEasy.ConnectionPool_AddConnection(self, con)

    def DelConnection(self, con):
        return _PreludeEasy.ConnectionPool_DelConnection(self, con)

    def SetConnectionAlive(self, con):
        return _PreludeEasy.ConnectionPool_SetConnectionAlive(self, con)

    def SetConnectionDead(self, con):
        return _PreludeEasy.ConnectionPool_SetConnectionDead(self, con)

    def SetRequiredPermission(self, permission):
        return _PreludeEasy.ConnectionPool_SetRequiredPermission(self, permission)
ConnectionPool_swigregister = _PreludeEasy.ConnectionPool_swigregister
ConnectionPool_swigregister(ConnectionPool)

class ClientProfile(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, ClientProfile, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, ClientProfile, name)
    __repr__ = _swig_repr

    def __init__(self, *args):
        this = _PreludeEasy.new_ClientProfile(*args)
        try:
            self.this.append(this)
        except Exception:
            self.this = this
    __swig_destroy__ = _PreludeEasy.delete_ClientProfile
    __del__ = lambda self: None

    def GetUid(self):
        return _PreludeEasy.ClientProfile_GetUid(self)

    def GetGid(self):
        return _PreludeEasy.ClientProfile_GetGid(self)

    def GetName(self):
        return _PreludeEasy.ClientProfile_GetName(self)

    def SetName(self, name):
        return _PreludeEasy.ClientProfile_SetName(self, name)

    def GetAnalyzerId(self, *args):
        return _PreludeEasy.ClientProfile_GetAnalyzerId(self, *args)

    def GetConfigFilename(self):
        return _PreludeEasy.ClientProfile_GetConfigFilename(self)

    def GetAnalyzeridFilename(self):
        return _PreludeEasy.ClientProfile_GetAnalyzeridFilename(self)

    def GetTlsKeyFilename(self):
        return _PreludeEasy.ClientProfile_GetTlsKeyFilename(self)

    def GetTlsServerCaCertFilename(self):
        return _PreludeEasy.ClientProfile_GetTlsServerCaCertFilename(self)

    def GetTlsServerKeyCertFilename(self):
        return _PreludeEasy.ClientProfile_GetTlsServerKeyCertFilename(self)

    def GetTlsServerCrlFilename(self):
        return _PreludeEasy.ClientProfile_GetTlsServerCrlFilename(self)

    def GetTlsClientKeyCertFilename(self):
        return _PreludeEasy.ClientProfile_GetTlsClientKeyCertFilename(self)

    def GetTlsClientTrustedCertFilename(self):
        return _PreludeEasy.ClientProfile_GetTlsClientTrustedCertFilename(self)

    def GetBackupDirname(self):
        return _PreludeEasy.ClientProfile_GetBackupDirname(self)

    def GetProfileDirname(self):
        return _PreludeEasy.ClientProfile_GetProfileDirname(self)

    def SetPrefix(self, prefix):
        return _PreludeEasy.ClientProfile_SetPrefix(self, prefix)

    def GetPrefix(self):
        return _PreludeEasy.ClientProfile_GetPrefix(self)
ClientProfile_swigregister = _PreludeEasy.ClientProfile_swigregister
ClientProfile_swigregister(ClientProfile)

class Client(ClientProfile):
    __swig_setmethods__ = {}
    for _s in [ClientProfile]:
        __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
    __setattr__ = lambda self, name, value: _swig_setattr(self, Client, name, value)
    __swig_getmethods__ = {}
    for _s in [ClientProfile]:
        __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
    __getattr__ = lambda self, name: _swig_getattr(self, Client, name)
    __repr__ = _swig_repr
    ASYNC_SEND = _PreludeEasy.Client_ASYNC_SEND
    FLAGS_ASYNC_SEND = _PreludeEasy.Client_FLAGS_ASYNC_SEND
    ASYNC_TIMER = _PreludeEasy.Client_ASYNC_TIMER
    FLAGS_ASYNC_TIMER = _PreludeEasy.Client_FLAGS_ASYNC_TIMER
    HEARTBEAT = _PreludeEasy.Client_HEARTBEAT
    FLAGS_HEARTBEAT = _PreludeEasy.Client_FLAGS_HEARTBEAT
    CONNECT = _PreludeEasy.Client_CONNECT
    FLAGS_CONNECT = _PreludeEasy.Client_FLAGS_CONNECT
    AUTOCONFIG = _PreludeEasy.Client_AUTOCONFIG
    FLAGS_AUTOCONFIG = _PreludeEasy.Client_FLAGS_AUTOCONFIG
    IDMEF_READ = _PreludeEasy.Client_IDMEF_READ
    PERMISSION_IDMEF_READ = _PreludeEasy.Client_PERMISSION_IDMEF_READ
    ADMIN_READ = _PreludeEasy.Client_ADMIN_READ
    PERMISSION_ADMIN_READ = _PreludeEasy.Client_PERMISSION_ADMIN_READ
    IDMEF_WRITE = _PreludeEasy.Client_IDMEF_WRITE
    PERMISSION_IDMEF_WRITE = _PreludeEasy.Client_PERMISSION_IDMEF_WRITE
    ADMIN_WRITE = _PreludeEasy.Client_ADMIN_WRITE
    PERMISSION_ADMIN_WRITE = _PreludeEasy.Client_PERMISSION_ADMIN_WRITE
    __swig_destroy__ = _PreludeEasy.delete_Client
    __del__ = lambda self: None

    def __init__(self, *args):
        this = _PreludeEasy.new_Client(*args)
        try:
            self.this.append(this)
        except Exception:
            self.this = this

    def Start(self):
        return _PreludeEasy.Client_Start(self)

    def Init(self):
        return _PreludeEasy.Client_Init(self)

    def GetClient(self):
        return _PreludeEasy.Client_GetClient(self)

    def SendIDMEF(self, message):
        return _PreludeEasy.Client_SendIDMEF(self, message)

    def RecvIDMEF(self, idmef, timeout=-1):
        return _PreludeEasy.Client_RecvIDMEF(self, idmef, timeout)

    def GetFlags(self):
        return _PreludeEasy.Client_GetFlags(self)

    def SetFlags(self, flags):
        return _PreludeEasy.Client_SetFlags(self, flags)

    def GetRequiredPermission(self):
        return _PreludeEasy.Client_GetRequiredPermission(self)

    def SetRequiredPermission(self, permission):
        return _PreludeEasy.Client_SetRequiredPermission(self, permission)

    def GetConfigFilename(self):
        return _PreludeEasy.Client_GetConfigFilename(self)

    def SetConfigFilename(self, name):
        return _PreludeEasy.Client_SetConfigFilename(self, name)

    def GetConnectionPool(self):
        return _PreludeEasy.Client_GetConnectionPool(self)

    def SetConnectionPool(self, pool):
        return _PreludeEasy.Client_SetConnectionPool(self, pool)

    def __lshift__(self, idmef):
        return _PreludeEasy.Client___lshift__(self, idmef)

    def __rshift__(self, idmef):
        return _PreludeEasy.Client___rshift__(self, idmef)
    __swig_getmethods__["SetRecvTimeout"] = lambda x: _PreludeEasy.Client_SetRecvTimeout
    if _newclass:
        SetRecvTimeout = staticmethod(_PreludeEasy.Client_SetRecvTimeout)
Client_swigregister = _PreludeEasy.Client_swigregister
Client_swigregister(Client)

def Client_SetRecvTimeout(c, timeout):
    return _PreludeEasy.Client_SetRecvTimeout(c, timeout)
Client_SetRecvTimeout = _PreludeEasy.Client_SetRecvTimeout

class ClientEasy(Client):
    __swig_setmethods__ = {}
    for _s in [Client]:
        __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
    __setattr__ = lambda self, name, value: _swig_setattr(self, ClientEasy, name, value)
    __swig_getmethods__ = {}
    for _s in [Client]:
        __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
    __getattr__ = lambda self, name: _swig_getattr(self, ClientEasy, name)
    __repr__ = _swig_repr

    def __init__(self, *args):
        this = _PreludeEasy.new_ClientEasy(*args)
        try:
            self.this.append(this)
        except Exception:
            self.this = this
    __swig_destroy__ = _PreludeEasy.delete_ClientEasy
    __del__ = lambda self: None
ClientEasy_swigregister = _PreludeEasy.ClientEasy_swigregister
ClientEasy_swigregister(ClientEasy)

class IDMEFCriterion(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, IDMEFCriterion, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, IDMEFCriterion, name)
    __repr__ = _swig_repr
    OPERATOR_NOT = _PreludeEasy.IDMEFCriterion_OPERATOR_NOT
    OPERATOR_NOCASE = _PreludeEasy.IDMEFCriterion_OPERATOR_NOCASE
    OPERATOR_EQUAL = _PreludeEasy.IDMEFCriterion_OPERATOR_EQUAL
    OPERATOR_EQUAL_NOCASE = _PreludeEasy.IDMEFCriterion_OPERATOR_EQUAL_NOCASE
    OPERATOR_NOT_EQUAL = _PreludeEasy.IDMEFCriterion_OPERATOR_NOT_EQUAL
    OPERATOR_NOT_EQUAL_NOCASE = _PreludeEasy.IDMEFCriterion_OPERATOR_NOT_EQUAL_NOCASE
    OPERATOR_LESSER = _PreludeEasy.IDMEFCriterion_OPERATOR_LESSER
    OPERATOR_LESSER_OR_EQUAL = _PreludeEasy.IDMEFCriterion_OPERATOR_LESSER_OR_EQUAL
    OPERATOR_GREATER = _PreludeEasy.IDMEFCriterion_OPERATOR_GREATER
    OPERATOR_GREATER_OR_EQUAL = _PreludeEasy.IDMEFCriterion_OPERATOR_GREATER_OR_EQUAL
    OPERATOR_SUBSTR = _PreludeEasy.IDMEFCriterion_OPERATOR_SUBSTR
    OPERATOR_SUBSTR_NOCASE = _PreludeEasy.IDMEFCriterion_OPERATOR_SUBSTR_NOCASE
    OPERATOR_NOT_SUBSTR = _PreludeEasy.IDMEFCriterion_OPERATOR_NOT_SUBSTR
    OPERATOR_NOT_SUBSTR_NOCASE = _PreludeEasy.IDMEFCriterion_OPERATOR_NOT_SUBSTR_NOCASE
    OPERATOR_REGEX = _PreludeEasy.IDMEFCriterion_OPERATOR_REGEX
    OPERATOR_REGEX_NOCASE = _PreludeEasy.IDMEFCriterion_OPERATOR_REGEX_NOCASE
    OPERATOR_NOT_REGEX = _PreludeEasy.IDMEFCriterion_OPERATOR_NOT_REGEX
    OPERATOR_NOT_REGEX_NOCASE = _PreludeEasy.IDMEFCriterion_OPERATOR_NOT_REGEX_NOCASE
    OPERATOR_NULL = _PreludeEasy.IDMEFCriterion_OPERATOR_NULL
    OPERATOR_NOT_NULL = _PreludeEasy.IDMEFCriterion_OPERATOR_NOT_NULL

    def __init__(self):
        this = _PreludeEasy.new_IDMEFCriterion()
        try:
            self.this.append(this)
        except Exception:
            self.this = this
    __swig_destroy__ = _PreludeEasy.delete_IDMEFCriterion
    __del__ = lambda self: None
IDMEFCriterion_swigregister = _PreludeEasy.IDMEFCriterion_swigregister
IDMEFCriterion_swigregister(IDMEFCriterion)

class IDMEFCriteria(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, IDMEFCriteria, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, IDMEFCriteria, name)
    __repr__ = _swig_repr
    __swig_destroy__ = _PreludeEasy.delete_IDMEFCriteria
    __del__ = lambda self: None

    def __init__(self, *args):
        this = _PreludeEasy.new_IDMEFCriteria(*args)
        try:
            self.this.append(this)
        except Exception:
            self.this = this

    def Match(self, message):
        return _PreludeEasy.IDMEFCriteria_Match(self, message)

    def Clone(self):
        return _PreludeEasy.IDMEFCriteria_Clone(self)

    def ANDCriteria(self, criteria):
        return _PreludeEasy.IDMEFCriteria_ANDCriteria(self, criteria)

    def ORCriteria(self, criteria):
        return _PreludeEasy.IDMEFCriteria_ORCriteria(self, criteria)

    def ToString(self):
        return _PreludeEasy.IDMEFCriteria_ToString(self)

    def __str__(self):
        return _PreludeEasy.IDMEFCriteria___str__(self)
IDMEFCriteria_swigregister = _PreludeEasy.IDMEFCriteria_swigregister
IDMEFCriteria_swigregister(IDMEFCriteria)

class IDMEFValue(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, IDMEFValue, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, IDMEFValue, name)
    __repr__ = _swig_repr

    def GetType(self):
        return _PreludeEasy.IDMEFValue_GetType(self)

    def IsNull(self):
        return _PreludeEasy.IDMEFValue_IsNull(self)
    __swig_destroy__ = _PreludeEasy.delete_IDMEFValue
    __del__ = lambda self: None

    def __init__(self, *args):
        this = _PreludeEasy.new_IDMEFValue(*args)
        try:
            self.this.append(this)
        except Exception:
            self.this = this

    def Match(self, value, op):
        return _PreludeEasy.IDMEFValue_Match(self, value, op)

    def Clone(self):
        return _PreludeEasy.IDMEFValue_Clone(self)
IDMEFValue_swigregister = _PreludeEasy.IDMEFValue_swigregister
IDMEFValue_swigregister(IDMEFValue)

class IDMEFPath(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, IDMEFPath, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, IDMEFPath, name)
    __repr__ = _swig_repr

    def __init__(self, *args):
        this = _PreludeEasy.new_IDMEFPath(*args)
        try:
            self.this.append(this)
        except Exception:
            self.this = this
    __swig_destroy__ = _PreludeEasy.delete_IDMEFPath
    __del__ = lambda self: None

    def Get(self, message):
        return _PreludeEasy.IDMEFPath_Get(self, message)

    def Set(self, *args):
        return _PreludeEasy.IDMEFPath_Set(self, *args)

    def GetClass(self, depth=-1):
        return _PreludeEasy.IDMEFPath_GetClass(self, depth)

    def GetValueType(self, depth=-1):
        return _PreludeEasy.IDMEFPath_GetValueType(self, depth)

    def SetIndex(self, index, depth=-1):
        return _PreludeEasy.IDMEFPath_SetIndex(self, index, depth)

    def UndefineIndex(self, depth=-1):
        return _PreludeEasy.IDMEFPath_UndefineIndex(self, depth)

    def GetIndex(self, depth=-1):
        return _PreludeEasy.IDMEFPath_GetIndex(self, depth)

    def MakeChild(self, child_name, index):
        return _PreludeEasy.IDMEFPath_MakeChild(self, child_name, index)

    def MakeParent(self):
        return _PreludeEasy.IDMEFPath_MakeParent(self)

    def Compare(self, path, depth=-1):
        return _PreludeEasy.IDMEFPath_Compare(self, path, depth)

    def Clone(self):
        return _PreludeEasy.IDMEFPath_Clone(self)

    def CheckOperator(self, op):
        return _PreludeEasy.IDMEFPath_CheckOperator(self, op)

    def GetApplicableOperators(self):
        return _PreludeEasy.IDMEFPath_GetApplicableOperators(self)

    def GetName(self, depth=-1):
        return _PreludeEasy.IDMEFPath_GetName(self, depth)

    def IsAmbiguous(self):
        return _PreludeEasy.IDMEFPath_IsAmbiguous(self)

    def HasLists(self):
        return _PreludeEasy.IDMEFPath_HasLists(self)

    def IsList(self, depth=-1):
        return _PreludeEasy.IDMEFPath_IsList(self, depth)

    def GetDepth(self):
        return _PreludeEasy.IDMEFPath_GetDepth(self)
IDMEFPath_swigregister = _PreludeEasy.IDMEFPath_swigregister
IDMEFPath_swigregister(IDMEFPath)

class IDMEFTime(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, IDMEFTime, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, IDMEFTime, name)
    __repr__ = _swig_repr

    def __init__(self, *args):
        this = _PreludeEasy.new_IDMEFTime(*args)
        try:
            self.this.append(this)
        except Exception:
            self.this = this
    __swig_destroy__ = _PreludeEasy.delete_IDMEFTime
    __del__ = lambda self: None

    def Set(self, *args):
        return _PreludeEasy.IDMEFTime_Set(self, *args)

    def SetSec(self, sec):
        return _PreludeEasy.IDMEFTime_SetSec(self, sec)

    def SetUSec(self, usec):
        return _PreludeEasy.IDMEFTime_SetUSec(self, usec)

    def SetGmtOffset(self, gmtoff):
        return _PreludeEasy.IDMEFTime_SetGmtOffset(self, gmtoff)

    def GetSec(self):
        return _PreludeEasy.IDMEFTime_GetSec(self)

    def GetUSec(self):
        return _PreludeEasy.IDMEFTime_GetUSec(self)

    def GetGmtOffset(self):
        return _PreludeEasy.IDMEFTime_GetGmtOffset(self)

    def Clone(self):
        return _PreludeEasy.IDMEFTime_Clone(self)

    def ToString(self):
        return _PreludeEasy.IDMEFTime_ToString(self)

    def __int__(self):
        return _PreludeEasy.IDMEFTime___int__(self)

    def __long__(self):
        return _PreludeEasy.IDMEFTime___long__(self)

    def __float__(self):
        return _PreludeEasy.IDMEFTime___float__(self)

    def __str__(self):
        return _PreludeEasy.IDMEFTime___str__(self)

    def __ne__(self, time):
        return _PreludeEasy.IDMEFTime___ne__(self, time)

    def __ge__(self, time):
        return _PreludeEasy.IDMEFTime___ge__(self, time)

    def __le__(self, time):
        return _PreludeEasy.IDMEFTime___le__(self, time)

    def __eq__(self, time):
        return _PreludeEasy.IDMEFTime___eq__(self, time)

    def __gt__(self, time):
        return _PreludeEasy.IDMEFTime___gt__(self, time)

    def __lt__(self, time):
        return _PreludeEasy.IDMEFTime___lt__(self, time)
IDMEFTime_swigregister = _PreludeEasy.IDMEFTime_swigregister
IDMEFTime_swigregister(IDMEFTime)

class IDMEF(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, IDMEF, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, IDMEF, name)
    __repr__ = _swig_repr
    __swig_destroy__ = _PreludeEasy.delete_IDMEF
    __del__ = lambda self: None

    def __init__(self, *args):
        this = _PreludeEasy.new_IDMEF(*args)
        try:
            self.this.append(this)
        except Exception:
            self.this = this

    def Set(self, *args):
        return _PreludeEasy.IDMEF_Set(self, *args)

    def Get(self, path):
        return _PreludeEasy.IDMEF_Get(self, path)

    def Clone(self, idmef):
        return _PreludeEasy.IDMEF_Clone(self, idmef)

    def ToString(self):
        return _PreludeEasy.IDMEF_ToString(self)

    def __str__(self):
        return _PreludeEasy.IDMEF___str__(self)

    def Write(self, nocast_file_p):
        return _PreludeEasy.IDMEF_Write(self, nocast_file_p)

    def Read(self, nocast_file_p):
        return _PreludeEasy.IDMEF_Read(self, nocast_file_p)

    def __rshift__(self, nocast_file_p):
        return _PreludeEasy.IDMEF___rshift__(self, nocast_file_p)

    def __lshift__(self, nocast_file_p):
        return _PreludeEasy.IDMEF___lshift__(self, nocast_file_p)
IDMEF_swigregister = _PreludeEasy.IDMEF_swigregister
IDMEF_swigregister(IDMEF)

# This file is compatible with both classic and new-style classes.