1
2
3
4
5
6
7
8
9 import google.protobuf
10 import google.protobuf.service
11
12 from sys import version_info
13 if version_info >= (2,6,0):
15 from os.path import dirname
16 import imp
17 fp = None
18 try:
19 fp, pathname, description = imp.find_module('_rcfproto', [dirname(__file__)])
20 except ImportError:
21 import _rcfproto
22 return _rcfproto
23 if fp is not None:
24 try:
25 _mod = imp.load_module('_rcfproto', fp, pathname, description)
26 finally:
27 fp.close()
28 return _mod
29
30 import util
31 _rcfproto = util.LoadRCFProtoNativeDll()
32
33 del swig_import_helper
34 else:
35 import _rcfproto
36 del version_info
37 try:
38 _swig_property = property
39 except NameError:
40 pass
42 if (name == "thisown"): return self.this.own(value)
43 if (name == "this"):
44 if type(value).__name__ == 'SwigPyObject':
45 self.__dict__[name] = value
46 return
47 method = class_type.__swig_setmethods__.get(name,None)
48 if method: return method(self,value)
49 if (not static):
50 self.__dict__[name] = value
51 else:
52 raise AttributeError("You cannot add attributes to %s" % self)
53
55 return _swig_setattr_nondynamic(self,class_type,name,value,0)
56
58 if (name == "thisown"): return self.this.own()
59 method = class_type.__swig_getmethods__.get(name,None)
60 if method: return method(self)
61 raise AttributeError(name)
62
64 try: strthis = "proxy of " + self.this.__repr__()
65 except: strthis = ""
66 return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
67
68 try:
69 _object = object
70 _newclass = 1
71 except AttributeError:
73 _newclass = 0
74
75
76 try:
77 import weakref
78 weakref_proxy = weakref.proxy
79 except:
80 weakref_proxy = lambda x: x
81
82
84 __swig_setmethods__ = {}
85 __setattr__ = lambda self, name, value: _swig_setattr(self, SwigPyIterator, name, value)
86 __swig_getmethods__ = {}
87 __getattr__ = lambda self, name: _swig_getattr(self, SwigPyIterator, name)
88 - def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined - class is abstract")
89 __repr__ = _swig_repr
90 __swig_destroy__ = _rcfproto.delete_SwigPyIterator
91 __del__ = lambda self : None;
92 - def Value(self): return _rcfproto.SwigPyIterator_value(self)
93 - def Incr(self, n = 1): return _rcfproto.SwigPyIterator_incr(self, n)
94 - def Decr(self, n = 1): return _rcfproto.SwigPyIterator_decr(self, n)
95 - def Distance(self, *args): return _rcfproto.SwigPyIterator_distance(self, *args)
96 - def Equal(self, *args): return _rcfproto.SwigPyIterator_equal(self, *args)
97 - def Copy(self): return _rcfproto.SwigPyIterator_copy(self)
98 - def Next(self): return _rcfproto.SwigPyIterator_next(self)
99 - def __next__(self): return _rcfproto.SwigPyIterator___next__(self)
100 - def Previous(self): return _rcfproto.SwigPyIterator_previous(self)
101 - def Advance(self, *args): return _rcfproto.SwigPyIterator_advance(self, *args)
102 - def __eq__(self, *args): return _rcfproto.SwigPyIterator___eq__(self, *args)
103 - def __ne__(self, *args): return _rcfproto.SwigPyIterator___ne__(self, *args)
104 - def __iadd__(self, *args): return _rcfproto.SwigPyIterator___iadd__(self, *args)
105 - def __isub__(self, *args): return _rcfproto.SwigPyIterator___isub__(self, *args)
106 - def __add__(self, *args): return _rcfproto.SwigPyIterator___add__(self, *args)
107 - def __sub__(self, *args): return _rcfproto.SwigPyIterator___sub__(self, *args)
109 _SwigPyIterator_swigregister = _rcfproto.SwigPyIterator_swigregister
110 _SwigPyIterator_swigregister(SwigPyIterator)
111
112 SHARED_PTR_DISOWN = _rcfproto.SHARED_PTR_DISOWN
114 __swig_setmethods__ = {}
115 __setattr__ = lambda self, name, value: _swig_setattr(self, TransportProtocolList, name, value)
116 __swig_getmethods__ = {}
117 __getattr__ = lambda self, name: _swig_getattr(self, TransportProtocolList, name)
118 __repr__ = _swig_repr
119 - def Iterator(self): return _rcfproto.TransportProtocolList_iterator(self)
120 - def __iter__(self): return self.iterator()
121 - def __nonzero__(self): return _rcfproto.TransportProtocolList___nonzero__(self)
122 - def __bool__(self): return _rcfproto.TransportProtocolList___bool__(self)
123 - def __len__(self): return _rcfproto.TransportProtocolList___len__(self)
124 - def Pop(self): return _rcfproto.TransportProtocolList_pop(self)
125 - def __getslice__(self, *args): return _rcfproto.TransportProtocolList___getslice__(self, *args)
126 - def __setslice__(self, *args): return _rcfproto.TransportProtocolList___setslice__(self, *args)
127 - def __delslice__(self, *args): return _rcfproto.TransportProtocolList___delslice__(self, *args)
128 - def __delitem__(self, *args): return _rcfproto.TransportProtocolList___delitem__(self, *args)
129 - def __getitem__(self, *args): return _rcfproto.TransportProtocolList___getitem__(self, *args)
130 - def __setitem__(self, *args): return _rcfproto.TransportProtocolList___setitem__(self, *args)
131 - def Append(self, *args): return _rcfproto.TransportProtocolList_append(self, *args)
132 - def Empty(self): return _rcfproto.TransportProtocolList_empty(self)
133 - def Size(self): return _rcfproto.TransportProtocolList_size(self)
134 - def Clear(self): return _rcfproto.TransportProtocolList_clear(self)
135 - def Swap(self, *args): return _rcfproto.TransportProtocolList_swap(self, *args)
136 - def Get_allocator(self): return _rcfproto.TransportProtocolList_get_allocator(self)
137 - def Begin(self): return _rcfproto.TransportProtocolList_begin(self)
138 - def End(self): return _rcfproto.TransportProtocolList_end(self)
139 - def Rbegin(self): return _rcfproto.TransportProtocolList_rbegin(self)
140 - def Rend(self): return _rcfproto.TransportProtocolList_rend(self)
141 - def Pop_back(self): return _rcfproto.TransportProtocolList_pop_back(self)
142 - def Erase(self, *args): return _rcfproto.TransportProtocolList_erase(self, *args)
144 this = _rcfproto.new_TransportProtocolList(*args)
145 try: self.this.append(this)
146 except: self.this = this
147 - def Push_back(self, *args): return _rcfproto.TransportProtocolList_push_back(self, *args)
148 - def Front(self): return _rcfproto.TransportProtocolList_front(self)
149 - def Back(self): return _rcfproto.TransportProtocolList_back(self)
150 - def Assign(self, *args): return _rcfproto.TransportProtocolList_assign(self, *args)
151 - def Resize(self, *args): return _rcfproto.TransportProtocolList_resize(self, *args)
152 - def Insert(self, *args): return _rcfproto.TransportProtocolList_insert(self, *args)
153 - def Reserve(self, *args): return _rcfproto.TransportProtocolList_reserve(self, *args)
154 - def Capacity(self): return _rcfproto.TransportProtocolList_capacity(self)
155 __swig_destroy__ = _rcfproto.delete_TransportProtocolList
156 __del__ = lambda self : None;
157 _TransportProtocolList_swigregister = _rcfproto.TransportProtocolList_swigregister
158 _TransportProtocolList_swigregister(TransportProtocolList)
159
160
161
163 """Reference-counted initialization of RCF framework. May be called multiple times (see deinit()). """
164
165 return _rcfproto.init()
166 init = _rcfproto.init
167
168
170 """Reference-counted deinitialization of RCF framework. For actual deinitialization to take place, deinit() must be called as many times as init() has been called. """
171
172 return _rcfproto.deinit()
173 deinit = _rcfproto.deinit
175 """Base class for log targets. Log targets are passed to the enableLogging() function, to configure RCF logging.
176
177 @undocumented: __swig_setmethods__, __setattr__, __swig_getmethods__, __getattr__, __repr__, __swig_destroy__, __del__"""
178
179 __swig_setmethods__ = {}
180 __setattr__ = lambda self, name, value: _swig_setattr(self, LogTarget, name, value)
181 __swig_getmethods__ = {}
182 __getattr__ = lambda self, name: _swig_getattr(self, LogTarget, name)
183 - def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined")
184 __repr__ = _swig_repr
185 __swig_destroy__ = _rcfproto.delete_LogTarget
186 __del__ = lambda self : None;
187 _LogTarget_swigregister = _rcfproto.LogTarget_swigregister
188 _LogTarget_swigregister(LogTarget)
189
191 """Configures log output to be directed to standard output.
192
193 @undocumented: __swig_setmethods__, __setattr__, __swig_getmethods__, __getattr__, __repr__, __swig_destroy__, __del__"""
194
195 __swig_setmethods__ = {}
196 for _s in [LogTarget]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
197 __setattr__ = lambda self, name, value: _swig_setattr(self, LogToStdout, name, value)
198 __swig_getmethods__ = {}
199 for _s in [LogTarget]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
200 __getattr__ = lambda self, name: _swig_getattr(self, LogToStdout, name)
201 __repr__ = _swig_repr
203 this = _rcfproto.new_LogToStdout()
204 try: self.this.append(this)
205 except: self.this = this
206 __swig_destroy__ = _rcfproto.delete_LogToStdout
207 __del__ = lambda self : None;
208 _LogToStdout_swigregister = _rcfproto.LogToStdout_swigregister
209 _LogToStdout_swigregister(LogToStdout)
210
212 """Configures log output to be directed to Windows debug output.
213
214 @undocumented: __swig_setmethods__, __setattr__, __swig_getmethods__, __getattr__, __repr__, __swig_destroy__, __del__"""
215
216 __swig_setmethods__ = {}
217 for _s in [LogTarget]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
218 __setattr__ = lambda self, name, value: _swig_setattr(self, LogToDebugWindow, name, value)
219 __swig_getmethods__ = {}
220 for _s in [LogTarget]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
221 __getattr__ = lambda self, name: _swig_getattr(self, LogToDebugWindow, name)
222 __repr__ = _swig_repr
224 this = _rcfproto.new_LogToDebugWindow()
225 try: self.this.append(this)
226 except: self.this = this
227 __swig_destroy__ = _rcfproto.delete_LogToDebugWindow
228 __del__ = lambda self : None;
229 _LogToDebugWindow_swigregister = _rcfproto.LogToDebugWindow_swigregister
230 _LogToDebugWindow_swigregister(LogToDebugWindow)
231
233 """Configures log output to be directed to the Windows event log.
234
235 @undocumented: __swig_setmethods__, __setattr__, __swig_getmethods__, __getattr__, __repr__, __swig_destroy__, __del__"""
236
237 __swig_setmethods__ = {}
238 for _s in [LogTarget]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
239 __setattr__ = lambda self, name, value: _swig_setattr(self, LogToEventLog, name, value)
240 __swig_getmethods__ = {}
241 for _s in [LogTarget]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
242 __getattr__ = lambda self, name: _swig_getattr(self, LogToEventLog, name)
243 __repr__ = _swig_repr
245 this = _rcfproto.new_LogToEventLog(*args)
246 try: self.this.append(this)
247 except: self.this = this
248 __swig_destroy__ = _rcfproto.delete_LogToEventLog
249 __del__ = lambda self : None;
250 _LogToEventLog_swigregister = _rcfproto.LogToEventLog_swigregister
251 _LogToEventLog_swigregister(LogToEventLog)
252
254 """Configures log output to be directed to a log file.
255
256 @undocumented: __swig_setmethods__, __setattr__, __swig_getmethods__, __getattr__, __repr__, __swig_destroy__, __del__"""
257
258 __swig_setmethods__ = {}
259 for _s in [LogTarget]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
260 __setattr__ = lambda self, name, value: _swig_setattr(self, LogToFile, name, value)
261 __swig_getmethods__ = {}
262 for _s in [LogTarget]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
263 __getattr__ = lambda self, name: _swig_getattr(self, LogToFile, name)
264 __repr__ = _swig_repr
266 this = _rcfproto.new_LogToFile(*args)
267 try: self.this.append(this)
268 except: self.this = this
269 __swig_destroy__ = _rcfproto.delete_LogToFile
270 __del__ = lambda self : None;
271 _LogToFile_swigregister = _rcfproto.LogToFile_swigregister
272 _LogToFile_swigregister(LogToFile)
273
274
275
277 """Configures logging for the RCF runtime. logTarget is where the log output will appear. loglevel is the detail level of the log, ranging from 0 (no logging), 1 (errors-only logging) to 4 (maximum detail logging). logFormat is an optional parameter describing the format of the log output. """
278
279 return _rcfproto.enableLogging(*args)
280 enableLogging = _rcfproto.enableLogging
281
282
284 """Disables logging for the RCF runtime. """
285
286 return _rcfproto.disableLogging()
287 disableLogging = _rcfproto.disableLogging
288 Tp_Unspecified = _rcfproto.Tp_Unspecified
289 Tp_Clear = _rcfproto.Tp_Clear
290 Tp_Ntlm = _rcfproto.Tp_Ntlm
291 Tp_Kerberos = _rcfproto.Tp_Kerberos
292 Tp_Negotiate = _rcfproto.Tp_Negotiate
293 Tp_Ssl = _rcfproto.Tp_Ssl
294 Tt_Unknown = _rcfproto.Tt_Unknown
295 Tt_Tcp = _rcfproto.Tt_Tcp
296 Tt_Udp = _rcfproto.Tt_Udp
297 Tt_Win32NamedPipe = _rcfproto.Tt_Win32NamedPipe
298 Tt_UnixNamedPipe = _rcfproto.Tt_UnixNamedPipe
299 Tt_Http = _rcfproto.Tt_Http
300 Tt_Https = _rcfproto.Tt_Https
301 Tt_InProcess = _rcfproto.Tt_InProcess
302 Si_Schannel = _rcfproto.Si_Schannel
303 Si_OpenSsl = _rcfproto.Si_OpenSsl
304 Cl_CurrentUser = _rcfproto.Cl_CurrentUser
305 Cl_LocalMachine = _rcfproto.Cl_LocalMachine
306 Cs_AddressBook = _rcfproto.Cs_AddressBook
307 Cs_AuthRoot = _rcfproto.Cs_AuthRoot
308 Cs_CertificateAuthority = _rcfproto.Cs_CertificateAuthority
309 Cs_Disallowed = _rcfproto.Cs_Disallowed
310 Cs_My = _rcfproto.Cs_My
311 Cs_Root = _rcfproto.Cs_Root
312 Cs_TrustedPeople = _rcfproto.Cs_TrustedPeople
313 Cs_TrustedPublisher = _rcfproto.Cs_TrustedPublisher
314 Cit_Unspecified = _rcfproto.Cit_Unspecified
315 Cit_Win32 = _rcfproto.Cit_Win32
316 Cit_X509 = _rcfproto.Cit_X509
318 """Base class of all certificate classes.
319
320 @undocumented: __swig_setmethods__, __setattr__, __swig_getmethods__, __getattr__, __repr__, __swig_destroy__, __del__"""
321
322 __swig_setmethods__ = {}
323 __setattr__ = lambda self, name, value: _swig_setattr(self, Certificate, name, value)
324 __swig_getmethods__ = {}
325 __getattr__ = lambda self, name: _swig_getattr(self, Certificate, name)
326 - def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined")
327 __repr__ = _swig_repr
328 - def _getType(self): return _rcfproto.Certificate__getType(self)
331 __swig_destroy__ = _rcfproto.delete_Certificate
332 __del__ = lambda self : None;
333 _Certificate_swigregister = _rcfproto.Certificate_swigregister
334 _Certificate_swigregister(Certificate)
335
337 """Use this class to load a certificate in .pem format. Only applicable to OpenSSL.
338
339 @undocumented: __swig_setmethods__, __setattr__, __swig_getmethods__, __getattr__, __repr__, __swig_destroy__, __del__"""
340
341 __swig_setmethods__ = {}
342 for _s in [Certificate]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
343 __setattr__ = lambda self, name, value: _swig_setattr(self, PemCertificate, name, value)
344 __swig_getmethods__ = {}
345 for _s in [Certificate]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
346 __getattr__ = lambda self, name: _swig_getattr(self, PemCertificate, name)
347 __repr__ = _swig_repr
348
350 """Loads a .pem certificate, using the given file path and password. """
351
352 this = _rcfproto.new_PemCertificate(*args)
353 try: self.this.append(this)
354 except: self.this = this
355 __swig_destroy__ = _rcfproto.delete_PemCertificate
356 __del__ = lambda self : None;
357 _PemCertificate_swigregister = _rcfproto.PemCertificate_swigregister
358 _PemCertificate_swigregister(PemCertificate)
359
361 """Represents an in-memory certificate, usually from a remote peer. Only applicable to OpenSSL.
362
363 @undocumented: __swig_setmethods__, __setattr__, __swig_getmethods__, __getattr__, __repr__, __swig_destroy__, __del__"""
364
365 __swig_setmethods__ = {}
366 for _s in [Certificate]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
367 __setattr__ = lambda self, name, value: _swig_setattr(self, X509Certificate, name, value)
368 __swig_getmethods__ = {}
369 for _s in [Certificate]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
370 __getattr__ = lambda self, name: _swig_getattr(self, X509Certificate, name)
371 - def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined")
372 __repr__ = _swig_repr
373 - def _getType(self): return _rcfproto.X509Certificate__getType(self)
374
376 """Gets the name of the certificate. """
377 return _rcfproto.X509Certificate_getCertificateName(self)
378
380 """Gets the name of the issuer of the certificate. """
381 return _rcfproto.X509Certificate_getIssuerName(self)
382 __swig_destroy__ = _rcfproto.delete_X509Certificate
383 __del__ = lambda self : None;
384 _X509Certificate_swigregister = _rcfproto.X509Certificate_swigregister
385 _X509Certificate_swigregister(X509Certificate)
386
388 """Represents an in-memory certificate, usually from a remote peer. Only applicable to Schannel.
389
390 @undocumented: __swig_setmethods__, __setattr__, __swig_getmethods__, __getattr__, __repr__, __swig_destroy__, __del__"""
391
392 __swig_setmethods__ = {}
393 for _s in [Certificate]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
394 __setattr__ = lambda self, name, value: _swig_setattr(self, Win32Certificate, name, value)
395 __swig_getmethods__ = {}
396 for _s in [Certificate]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
397 __getattr__ = lambda self, name: _swig_getattr(self, Win32Certificate, name)
398 - def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined")
399 __repr__ = _swig_repr
400 - def _getType(self): return _rcfproto.Win32Certificate__getType(self)
401
403 """Gets the name of the certificate. """
404 return _rcfproto.Win32Certificate_getCertificateName(self)
405
407 """Gets the name of the issuer of the certificate. """
408 return _rcfproto.Win32Certificate_getIssuerName(self)
409
411 """Exports the certificate in PFX format, to the given file path. """
412 return _rcfproto.Win32Certificate_exportToPfx(self, *args)
413
415 """Attempts to locate a root certificate for this certificate, in the given certificate store. Returns the root certificate if found, and otherwise null. """
416 return _rcfproto.Win32Certificate_findRootCertificate(self, *args)
417 __swig_destroy__ = _rcfproto.delete_Win32Certificate
418 __del__ = lambda self : None;
419 _Win32Certificate_swigregister = _rcfproto.Win32Certificate_swigregister
420 _Win32Certificate_swigregister(Win32Certificate)
421
423 """Use this class to load a certificate from .pfx format. Only applicable to Schannel.
424
425 @undocumented: __swig_setmethods__, __setattr__, __swig_getmethods__, __getattr__, __repr__, __swig_destroy__, __del__"""
426
427 __swig_setmethods__ = {}
428 for _s in [Win32Certificate]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
429 __setattr__ = lambda self, name, value: _swig_setattr(self, PfxCertificate, name, value)
430 __swig_getmethods__ = {}
431 for _s in [Win32Certificate]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
432 __getattr__ = lambda self, name: _swig_getattr(self, PfxCertificate, name)
433 __repr__ = _swig_repr
434
436 """Loads a certificate from a .pfx file, using the given file path, password and certificate name. """
437
438 this = _rcfproto.new_PfxCertificate(*args)
439 try: self.this.append(this)
440 except: self.this = this
441
443 """Adds the certificate to the given Windows certificate store. """
444 return _rcfproto.PfxCertificate_addToStore(self, *args)
445 __swig_destroy__ = _rcfproto.delete_PfxCertificate
446 __del__ = lambda self : None;
447 _PfxCertificate_swigregister = _rcfproto.PfxCertificate_swigregister
448 _PfxCertificate_swigregister(PfxCertificate)
449
451 """Represents a certificate in a Windows certificate store.
452
453 @undocumented: __swig_setmethods__, __setattr__, __swig_getmethods__, __getattr__, __repr__, __swig_destroy__, __del__"""
454
455 __swig_setmethods__ = {}
456 for _s in [Win32Certificate]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
457 __setattr__ = lambda self, name, value: _swig_setattr(self, StoreCertificate, name, value)
458 __swig_getmethods__ = {}
459 for _s in [Win32Certificate]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
460 __getattr__ = lambda self, name: _swig_getattr(self, StoreCertificate, name)
461 __repr__ = _swig_repr
462
464 """Loads a certificate from a certificate store. """
465
466 this = _rcfproto.new_StoreCertificate(*args)
467 try: self.this.append(this)
468 except: self.this = this
469
471 """Removes the certificate from the store it was loaded from. """
472 return _rcfproto.StoreCertificate_removeFromStore(self)
473 __swig_destroy__ = _rcfproto.delete_StoreCertificate
474 __del__ = lambda self : None;
475 _StoreCertificate_swigregister = _rcfproto.StoreCertificate_swigregister
476 _StoreCertificate_swigregister(StoreCertificate)
477
479 """Iterates over the certificates in a Windows certificate store.
480
481 @undocumented: __swig_setmethods__, __setattr__, __swig_getmethods__, __getattr__, __repr__, __swig_destroy__, __del__"""
482
483 __swig_setmethods__ = {}
484 __setattr__ = lambda self, name, value: _swig_setattr(self, StoreCertificateIterator, name, value)
485 __swig_getmethods__ = {}
486 __getattr__ = lambda self, name: _swig_getattr(self, StoreCertificateIterator, name)
487 __repr__ = _swig_repr
488
490 """Constructs a store iterator for the the given certificate location and store. """
491
492 this = _rcfproto.new_StoreCertificateIterator(*args)
493 try: self.this.append(this)
494 except: self.this = this
495
497 """Moves to the next certificate in the store. Returns false if there are no more certificates, and true otherwise. """
498 return _rcfproto.StoreCertificateIterator_moveNext(self)
499
501 """Resets the iterator back to the beginning of the store. """
502 return _rcfproto.StoreCertificateIterator_reset(self)
503
505 """Returns the current certificate. """
506 return _rcfproto.StoreCertificateIterator_current(self)
507 __swig_destroy__ = _rcfproto.delete_StoreCertificateIterator
508 __del__ = lambda self : None;
509 _StoreCertificateIterator_swigregister = _rcfproto.StoreCertificateIterator_swigregister
510 _StoreCertificateIterator_swigregister(StoreCertificateIterator)
511
512
513
515 """Sets the default SSL implementation to use (OpenSSL or Schannel). The default is OpenSSL. """
516
517 return _rcfproto.setDefaultSslImplementation(*args)
518 setDefaultSslImplementation = _rcfproto.setDefaultSslImplementation
519
520
525 getDefaultSslImplementation = _rcfproto.getDefaultSslImplementation
527 """Represents an IP address (IPv4 or IPv6).
528
529 @undocumented: __swig_setmethods__, __setattr__, __swig_getmethods__, __getattr__, __repr__, __swig_destroy__, __del__"""
530
531 __swig_setmethods__ = {}
532 __setattr__ = lambda self, name, value: _swig_setattr(self, IpAddress, name, value)
533 __swig_getmethods__ = {}
534 __getattr__ = lambda self, name: _swig_getattr(self, IpAddress, name)
535 __repr__ = _swig_repr
536
538 """Construct an IP address from a host name """
539
540 this = _rcfproto.new_IpAddress(*args)
541 try: self.this.append(this)
542 except: self.this = this
543 __swig_destroy__ = _rcfproto.delete_IpAddress
544 __del__ = lambda self : None;
545 _IpAddress_swigregister = _rcfproto.IpAddress_swigregister
546 _IpAddress_swigregister(IpAddress)
547
549 """Represents a server-side thread pool.
550
551 @undocumented: __swig_setmethods__, __setattr__, __swig_getmethods__, __getattr__, __repr__, __swig_destroy__, __del__"""
552
553 __swig_setmethods__ = {}
554 __setattr__ = lambda self, name, value: _swig_setattr(self, ThreadPool, name, value)
555 __swig_getmethods__ = {}
556 __getattr__ = lambda self, name: _swig_getattr(self, ThreadPool, name)
557 __repr__ = _swig_repr
559 this = _rcfproto.new_ThreadPool(*args)
560 try: self.this.append(this)
561 except: self.this = this
562
564 """Sets the minimum number of threads in the thread pool. """
565 return _rcfproto.ThreadPool_setThreadMinCount(self, *args)
566
568 """Returns the minimum number of threads in the thread pool. """
569 return _rcfproto.ThreadPool_getThreadMinCount(self)
570
572 """Sets the maximum number of threads in the thread pool. """
573 return _rcfproto.ThreadPool_setThreadMaxCount(self, *args)
574
576 """Returns the maximum number of threads in the thread pool. """
577 return _rcfproto.ThreadPool_getThreadMaxCount(self)
578
580 """Sets the thread idle timeout value, in milliseconds. After a thread has been idle for this time, it will be shut down, unless the thread count is already at the minimum value for the thread pool. """
581 return _rcfproto.ThreadPool_setThreadIdleTimeoutMs(self, *args)
582
584 """Returns the thread idle timeout value, in milliseconds. """
585 return _rcfproto.ThreadPool_getThreadIdleTimeoutMs(self)
586
588 """If this setting is true, clients will receive an error message right away, if all threads in the thread pool are busy. Otherwise, the client will wait for a thread in the thread pool to become free. """
589 return _rcfproto.ThreadPool_setReserveLastThread(self, *args)
591
593 """Sets the thread name of the thread pool threads, as visible in a debugger. """
594 return _rcfproto.ThreadPool_setThreadName(self, *args)
595
597 """Returns the thread name of the thread pool threads. """
598 return _rcfproto.ThreadPool_getThreadName(self)
599 __swig_destroy__ = _rcfproto.delete_ThreadPool
600 __del__ = lambda self : None;
601 _ThreadPool_swigregister = _rcfproto.ThreadPool_swigregister
602 _ThreadPool_swigregister(ThreadPool)
603
605 """Base class for all network endpoint types.
606
607 @undocumented: __swig_setmethods__, __setattr__, __swig_getmethods__, __getattr__, __repr__, __swig_destroy__, __del__"""
608
609 __swig_setmethods__ = {}
610 __setattr__ = lambda self, name, value: _swig_setattr(self, Endpoint, name, value)
611 __swig_getmethods__ = {}
612 __getattr__ = lambda self, name: _swig_getattr(self, Endpoint, name)
613 - def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined")
614 __repr__ = _swig_repr
615 __swig_destroy__ = _rcfproto.delete_Endpoint
616 __del__ = lambda self : None;
617 _Endpoint_swigregister = _rcfproto.Endpoint_swigregister
618 _Endpoint_swigregister(Endpoint)
619
621 """Represents a TCP endpoint.
622
623 @undocumented: __swig_setmethods__, __setattr__, __swig_getmethods__, __getattr__, __repr__, __swig_destroy__, __del__"""
624
625 __swig_setmethods__ = {}
626 for _s in [Endpoint]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
627 __setattr__ = lambda self, name, value: _swig_setattr(self, TcpEndpoint, name, value)
628 __swig_getmethods__ = {}
629 for _s in [Endpoint]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
630 __getattr__ = lambda self, name: _swig_getattr(self, TcpEndpoint, name)
631 __repr__ = _swig_repr
632
634 """Constructs a TcpEndpoint from a port number. The IP address defaults to 127.0.0.1 . """
635
636 this = _rcfproto.new_TcpEndpoint(*args)
637 try: self.this.append(this)
638 except: self.this = this
639
641 """Gets the IP address of the TcpEndpoint. """
642 return _rcfproto.TcpEndpoint_getIp(self)
643
645 """Gets the port number of the TcpEndpoint. """
646 return _rcfproto.TcpEndpoint_getPort(self)
647
649 """Returns a string representation of the TcpEndpoint. """
650 return _rcfproto.TcpEndpoint_asString(self)
651 __swig_destroy__ = _rcfproto.delete_TcpEndpoint
652 __del__ = lambda self : None;
653 _TcpEndpoint_swigregister = _rcfproto.TcpEndpoint_swigregister
654 _TcpEndpoint_swigregister(TcpEndpoint)
655
657 """Represents a Win32 named pipe endpoint. Only available on Windows platforms.
658
659 @undocumented: __swig_setmethods__, __setattr__, __swig_getmethods__, __getattr__, __repr__, __swig_destroy__, __del__"""
660
661 __swig_setmethods__ = {}
662 for _s in [Endpoint]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
663 __setattr__ = lambda self, name, value: _swig_setattr(self, Win32NamedPipeEndpoint, name, value)
664 __swig_getmethods__ = {}
665 for _s in [Endpoint]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
666 __getattr__ = lambda self, name: _swig_getattr(self, Win32NamedPipeEndpoint, name)
667 __repr__ = _swig_repr
668
670 """Constructs a Win32 named pipe endpoint with the given pipe name. """
671
672 this = _rcfproto.new_Win32NamedPipeEndpoint(*args)
673 try: self.this.append(this)
674 except: self.this = this
675 __swig_destroy__ = _rcfproto.delete_Win32NamedPipeEndpoint
676 __del__ = lambda self : None;
677 _Win32NamedPipeEndpoint_swigregister = _rcfproto.Win32NamedPipeEndpoint_swigregister
678 _Win32NamedPipeEndpoint_swigregister(Win32NamedPipeEndpoint)
679
681 """Represents a UNIX local socket endpoint. Only available on UNIX platforms.
682
683 @undocumented: __swig_setmethods__, __setattr__, __swig_getmethods__, __getattr__, __repr__, __swig_destroy__, __del__"""
684
685 __swig_setmethods__ = {}
686 for _s in [Endpoint]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
687 __setattr__ = lambda self, name, value: _swig_setattr(self, UnixLocalEndpoint, name, value)
688 __swig_getmethods__ = {}
689 for _s in [Endpoint]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
690 __getattr__ = lambda self, name: _swig_getattr(self, UnixLocalEndpoint, name)
691 __repr__ = _swig_repr
692
694 """Constructs a UNIX local socket endpoint with the given name. """
695
696 this = _rcfproto.new_UnixLocalEndpoint(*args)
697 try: self.this.append(this)
698 except: self.this = this
699 __swig_destroy__ = _rcfproto.delete_UnixLocalEndpoint
700 __del__ = lambda self : None;
701 _UnixLocalEndpoint_swigregister = _rcfproto.UnixLocalEndpoint_swigregister
702 _UnixLocalEndpoint_swigregister(UnixLocalEndpoint)
703
705 """Represents a HTTP endpoint.
706
707 @undocumented: __swig_setmethods__, __setattr__, __swig_getmethods__, __getattr__, __repr__, __swig_destroy__, __del__"""
708
709 __swig_setmethods__ = {}
710 for _s in [TcpEndpoint]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
711 __setattr__ = lambda self, name, value: _swig_setattr(self, HttpEndpoint, name, value)
712 __swig_getmethods__ = {}
713 for _s in [TcpEndpoint]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
714 __getattr__ = lambda self, name: _swig_getattr(self, HttpEndpoint, name)
715 __repr__ = _swig_repr
716
718 """Constructs an HTTP endpoint on the given port number. """
719
720 this = _rcfproto.new_HttpEndpoint(*args)
721 try: self.this.append(this)
722 except: self.this = this
723 __swig_destroy__ = _rcfproto.delete_HttpEndpoint
724 __del__ = lambda self : None;
725 _HttpEndpoint_swigregister = _rcfproto.HttpEndpoint_swigregister
726 _HttpEndpoint_swigregister(HttpEndpoint)
727
729 """Represents a HTTPS endpoint.
730
731 @undocumented: __swig_setmethods__, __setattr__, __swig_getmethods__, __getattr__, __repr__, __swig_destroy__, __del__"""
732
733 __swig_setmethods__ = {}
734 for _s in [TcpEndpoint]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
735 __setattr__ = lambda self, name, value: _swig_setattr(self, HttpsEndpoint, name, value)
736 __swig_getmethods__ = {}
737 for _s in [TcpEndpoint]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
738 __getattr__ = lambda self, name: _swig_getattr(self, HttpsEndpoint, name)
739 __repr__ = _swig_repr
740
742 """Constructs an HTTPS endpoint on the given port number. """
743
744 this = _rcfproto.new_HttpsEndpoint(*args)
745 try: self.this.append(this)
746 except: self.this = this
747 __swig_destroy__ = _rcfproto.delete_HttpsEndpoint
748 __del__ = lambda self : None;
749 _HttpsEndpoint_swigregister = _rcfproto.HttpsEndpoint_swigregister
750 _HttpsEndpoint_swigregister(HttpsEndpoint)
751
753 """Base class for all server transports.
754
755 @undocumented: __swig_setmethods__, __setattr__, __swig_getmethods__, __getattr__, __repr__, __swig_destroy__, __del__"""
756
757 __swig_setmethods__ = {}
758 __setattr__ = lambda self, name, value: _swig_setattr(self, ServerTransport, name, value)
759 __swig_getmethods__ = {}
760 __getattr__ = lambda self, name: _swig_getattr(self, ServerTransport, name)
761 - def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined - class is abstract")
762 __repr__ = _swig_repr
763
765 """Returns the transport type of this server transport. """
766 return _rcfproto.ServerTransport_getTransportType(self)
767
769 """Sets maximum incoming message length. Incoming messages that are larger than this size will be dropped. """
770 return _rcfproto.ServerTransport_setMaxIncomingMessageLength(self, *args)
771
773 """Returns maximum incoming message length. """
774 return _rcfproto.ServerTransport_getMaxIncomingMessageLength(self)
775
777 """Sets the maximum number of simultaneous connections to the server transport. """
778 return _rcfproto.ServerTransport_setConnectionLimit(self, *args)
779
781 """Returns the maximum number of simultaneous connections to the server transport. """
782 return _rcfproto.ServerTransport_getConnectionLimit(self)
783
785 """Sets the initial number of listening connections that are created when the server transport starts. """
786 return _rcfproto.ServerTransport_setInitialNumberOfConnections(self, *args)
787
789 """Returns the initial number of listening connections that are created when the server transport starts. """
790 return _rcfproto.ServerTransport_getInitialNumberOfConnections(self)
791
793 """Sets the thread pool that the server transport will use. """
794 return _rcfproto.ServerTransport_setThreadPool(self, *args)
795
797 """Sets the list of supported protocols the server transport supports. Clients that connect without using one of the supported protocols are dropped. If the list of supported protocols is empty, all protocols are allowed. """
798 return _rcfproto.ServerTransport_setSupportedProtocols(self, *args)
800 __swig_destroy__ = _rcfproto.delete_ServerTransport
801 __del__ = lambda self : None;
802 _ServerTransport_swigregister = _rcfproto.ServerTransport_swigregister
803 _ServerTransport_swigregister(ServerTransport)
804
806 """Base class for all client transports.
807
808 @undocumented: __swig_setmethods__, __setattr__, __swig_getmethods__, __getattr__, __repr__, __swig_destroy__, __del__"""
809
810 __swig_setmethods__ = {}
811 __setattr__ = lambda self, name, value: _swig_setattr(self, ClientTransport, name, value)
812 __swig_getmethods__ = {}
813 __getattr__ = lambda self, name: _swig_getattr(self, ClientTransport, name)
814 - def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined - class is abstract")
815 __repr__ = _swig_repr
816
818 """Returns the transport type of this client transport. """
819 return _rcfproto.ClientTransport_getTransportType(self)
820
822 """Sets maximum incoming message length. Incoming messages that are larger than this size will be dropped. """
823 return _rcfproto.ClientTransport_setMaxIncomingMessageLength(self, *args)
824
826 """Returns maximum incoming message length. """
827 return _rcfproto.ClientTransport_getMaxIncomingMessageLength(self)
828
830 """Returns the byte size of the last request sent on the client transport. """
831 return _rcfproto.ClientTransport_getLastRequestSize(self)
832
834 """Returns the byte size of the last response received on the client transport. """
835 return _rcfproto.ClientTransport_getLastResponseSize(self)
836
838 """Returns the running total of bytes sent on the client transport. """
839 return _rcfproto.ClientTransport_getRunningTotalBytesSent(self)
840
842 """Returns the running total of bytes received on the client transport. """
843 return _rcfproto.ClientTransport_getRunningTotalBytesReceived(self)
844
846 """Resets the bytes-sent and bytes-received running totals to zero. """
847 return _rcfproto.ClientTransport_resetRunningTotals(self)
848 __swig_destroy__ = _rcfproto.delete_ClientTransport
849 __del__ = lambda self : None;
850 _ClientTransport_swigregister = _rcfproto.ClientTransport_swigregister
851 _ClientTransport_swigregister(ClientTransport)
852
854 __swig_setmethods__ = {}
855 __setattr__ = lambda self, name, value: _swig_setattr(self, _SwigCallbackArgs, name, value)
856 __swig_getmethods__ = {}
857 __getattr__ = lambda self, name: _swig_getattr(self, _SwigCallbackArgs, name)
858 __repr__ = _swig_repr
859 __swig_setmethods__["mErrorString"] = _rcfproto._SwigCallbackArgs_mErrorString_set
860 __swig_getmethods__["mErrorString"] = _rcfproto._SwigCallbackArgs_mErrorString_get
861 if _newclass:mErrorString = _swig_property(_rcfproto._SwigCallbackArgs_mErrorString_get, _rcfproto._SwigCallbackArgs_mErrorString_set)
862 __swig_setmethods__["mCertificatePtr"] = _rcfproto._SwigCallbackArgs_mCertificatePtr_set
863 __swig_getmethods__["mCertificatePtr"] = _rcfproto._SwigCallbackArgs_mCertificatePtr_get
864 if _newclass:mCertificatePtr = _swig_property(_rcfproto._SwigCallbackArgs_mCertificatePtr_get, _rcfproto._SwigCallbackArgs_mCertificatePtr_set)
866 this = _rcfproto.new__SwigCallbackArgs()
867 try: self.this.append(this)
868 except: self.this = this
869 __swig_destroy__ = _rcfproto.delete__SwigCallbackArgs
870 __del__ = lambda self : None;
871 __SwigCallbackArgs_swigregister = _rcfproto._SwigCallbackArgs_swigregister
872 __SwigCallbackArgs_swigregister(_SwigCallbackArgs)
873
875 __swig_setmethods__ = {}
876 __setattr__ = lambda self, name, value: _swig_setattr(self, _SwigCallback, name, value)
877 __swig_getmethods__ = {}
878 __getattr__ = lambda self, name: _swig_getattr(self, _SwigCallback, name)
879 __repr__ = _swig_repr
881 if self.__class__ == _SwigCallback:
882 _self = None
883 else:
884 _self = self
885 this = _rcfproto.new__SwigCallback(_self, )
886 try: self.this.append(this)
887 except: self.this = this
888 __swig_destroy__ = _rcfproto.delete__SwigCallback
889 __del__ = lambda self : None;
890 - def Run(self): return _rcfproto._SwigCallback_Run(self)
891 - def ProtoRpcBegin(self, *args): return _rcfproto._SwigCallback_ProtoRpcBegin(self, *args)
892 - def ValidateCertificate(self, *args): return _rcfproto._SwigCallback_ValidateCertificate(self, *args)
894 self.this.disown()
895 _rcfproto.disown__SwigCallback(self)
896 return weakref_proxy(self)
897 __SwigCallback_swigregister = _rcfproto._SwigCallback_swigregister
898 __SwigCallback_swigregister(_SwigCallback)
899
901 """Represents a single RPC connection to a server.
902
903 @undocumented: __swig_setmethods__, __setattr__, __swig_getmethods__, __getattr__, __repr__, __swig_destroy__, __del__"""
904
905 __swig_setmethods__ = {}
906 __setattr__ = lambda self, name, value: _swig_setattr(self, RcfProtoChannel, name, value)
907 __swig_getmethods__ = {}
908 __getattr__ = lambda self, name: _swig_getattr(self, RcfProtoChannel, name)
909 __repr__ = _swig_repr
910
912 """Constructs a RPC channel from an endpoint. """
913
914 this = _rcfproto.new_RcfProtoChannel(*args)
915 try: self.this.append(this)
916 except: self.this = this
919
921 """After a call has finished, returns true if the call failed. The possible reasons for failure depend on the RPC implementation. Failed() must not be called before a call has finished. If Failed() returns true, the contents of the response message are undefined. """
922 return _rcfproto.RcfProtoChannel_Failed(self)
923
924 - def ErrorText(self):
925 """If Failed() is true, returns a human-readable description of the error. """
926 return _rcfproto.RcfProtoChannel_ErrorText(self)
927
929 """Advises the RPC system that the caller desires that the RPC call be canceled. The RPC system may cancel it immediately, may wait awhile and then cancel it, or may not even cancel the call at all. If the call is canceled, the "done" callback will still be called and the RpcController will indicate that the call failed at that time. """
930 return _rcfproto.RcfProtoChannel_StartCancel(self)
931
933 """Connects to the server. """
934 return _rcfproto.RcfProtoChannel_connect(self)
935
937 """Disconencts from the server. """
938 return _rcfproto.RcfProtoChannel_disconnect(self)
939
941 """Sets the remote call timeout value, in milliseconds. """
942 return _rcfproto.RcfProtoChannel_setRemoteCallTimeoutMs(self, *args)
943
945 """Gets the remote call timeout value, in milliseconds. """
946 return _rcfproto.RcfProtoChannel_getRemoteCallTimeoutMs(self)
947
949 """Sets the connect timeout value, in milliseconds. """
950 return _rcfproto.RcfProtoChannel_setConnectTimeoutMs(self, *args)
951
953 """Gets the connect timeout value, in milliseconds. """
954 return _rcfproto.RcfProtoChannel_getConnectTimeoutMs(self)
955
957 """Sets the transport protocol being used by the channel. """
958 return _rcfproto.RcfProtoChannel_setTransportProtocol(self, *args)
959
961 """Gets the transport protocol being used by the channel. """
962 return _rcfproto.RcfProtoChannel_getTransportProtocol(self)
963
965 """Sets the enable asynchronous RPC setting. By default asynchronous RPC is disabled. """
966 return _rcfproto.RcfProtoChannel_setEnableAsynchronousRpc(self, *args)
967
969 """Gets the enable synchronous RPC setting. """
970 return _rcfproto.RcfProtoChannel_getEnableAsynchronousRpc(self)
971
973 """Sets the ping back interval of the connection, in milliseconds. Ping backs are sent from the server back to the client, while a remote call is in progress. """
974 return _rcfproto.RcfProtoChannel_setPingBackIntervalMs(self, *args)
975
977 """Returns the ping back interval of the connection. """
978 return _rcfproto.RcfProtoChannel_getPingBackIntervalMs(self)
979
981 """Sets the network address of the HTTP proxy server, through which to route remote calls. Only valid when using a HTTP or HTTPS endpoint. """
982 return _rcfproto.RcfProtoChannel_setHttpProxy(self, *args)
983
985 """Returns the network address of the HTTP proxy server. """
986 return _rcfproto.RcfProtoChannel_getHttpProxy(self)
987
989 """Sets the port number of the HTTP proxy server, through which to route remote calls. Only valid when using a HTTP or HTTPS endpoint. """
990 return _rcfproto.RcfProtoChannel_setHttpProxyPort(self, *args)
991
993 """Returns the port number of the HTTP proxy server. """
994 return _rcfproto.RcfProtoChannel_getHttpProxyPort(self)
995
997 """Returns the transport type of the connection. """
998 return _rcfproto.RcfProtoChannel_getTransportType(self)
999
1001 """Sets the Windows username to use when connecting. Only valid for NTLM and Kerberos transport protocols. """
1002 return _rcfproto.RcfProtoChannel_setUsername(self, *args)
1003
1005 """Returns the Windows username to use when connecting. """
1006 return _rcfproto.RcfProtoChannel_getUsername(self)
1007
1009 """Sets the Windows password to use when connecting. Only valid for NTLM and Kerberos transport protocols. """
1010 return _rcfproto.RcfProtoChannel_setPassword(self, *args)
1011
1013 """Returns the Windows password to use when connecting. """
1014 return _rcfproto.RcfProtoChannel_getPassword(self)
1015
1017 """Sets the Kerberos SPN to use when connecting. Only valid for Kerberos transport protocols. """
1018 return _rcfproto.RcfProtoChannel_setKerberosSpn(self, *args)
1019
1021 """Returns the Kerberos SPN to use when connecting. """
1022 return _rcfproto.RcfProtoChannel_getKerberosSpn(self)
1023
1025 """Sets the transport level compression setting for this connection. """
1026 return _rcfproto.RcfProtoChannel_setEnableCompression(self, *args)
1027
1029 """Returns the transport level compression setting for this connection. """
1030 return _rcfproto.RcfProtoChannel_getEnableCompression(self)
1031
1033 """Sets the SSL certificate for the channel. """
1034 return _rcfproto.RcfProtoChannel_setCertificate(self, *args)
1035
1037 """Gets the SSL certificate for the channel. """
1038 return _rcfproto.RcfProtoChannel_getCertificate(self)
1039
1041 """Sets the certificate authority for the channel. """
1042 return _rcfproto.RcfProtoChannel_setCaCertificate(self, *args)
1043
1045 """Gets the certificate authority for the channel. """
1046 return _rcfproto.RcfProtoChannel_getCaCertificate(self)
1047
1049 """Sets the OpenSSL cipher suite. Only applicable when using OpenSSL as the SSL implementation. """
1050 return _rcfproto.RcfProtoChannel_setOpenSslCipherSuite(self, *args)
1051
1053 """Gets the OpenSSL cipher suite. """
1054 return _rcfproto.RcfProtoChannel_getOpenSslCipherSuite(self)
1055
1057 """Sets the Schannel certificate validation setting. Only applicable when using Schannel as the SSL implementation. If this setting is non-empty, it will be used by Schannel to automatically validate peer certificates. """
1058 return _rcfproto.RcfProtoChannel_setEnableSchannelCertificateValidation(self, *args)
1059
1061 """Gets the Schannel certificate validation setting. """
1062 return _rcfproto.RcfProtoChannel_getEnableSchannelCertificateValidation(self)
1064
1066 """Sets the SSL implementation to be used by the channel. """
1067 return _rcfproto.RcfProtoChannel_setSslImplementation(self, *args)
1068
1070 """Gets the SSL implementation. """
1071 return _rcfproto.RcfProtoChannel_getSslImplementation(self)
1072 __swig_destroy__ = _rcfproto.delete_RcfProtoChannel
1073 __del__ = lambda self : None;
1074
1075
1076
1077
1078 - def CallMethod(self, methodDesc, controller, request, responsePrototype, done):
1079 """Gets the certificate validation callback. """
1080
1081 rcfprotoimpl.RcfProtoChannelImpl.CallMethod(self, methodDesc, controller, request, responsePrototype, done)
1082
1084 return rcfprotoimpl.RcfProtoChannelImpl.GetResponse(self);
1085
1088
1089
1090
1091
1092 _RcfProtoChannel_swigregister = _rcfproto.RcfProtoChannel_swigregister
1093 _RcfProtoChannel_swigregister(RcfProtoChannel)
1094
1096 """Represents the server-side session associated with a RPC connection.
1097
1098 @undocumented: __swig_setmethods__, __setattr__, __swig_getmethods__, __getattr__, __repr__, __swig_destroy__, __del__"""
1099
1100 __swig_setmethods__ = {}
1101 __setattr__ = lambda self, name, value: _swig_setattr(self, RcfProtoSession, name, value)
1102 __swig_getmethods__ = {}
1103 __getattr__ = lambda self, name: _swig_getattr(self, RcfProtoSession, name)
1104 - def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined")
1105 __repr__ = _swig_repr
1106
1108 """Causes Failed() to return true on the client side. "reason" will be incorporated into the message returned by ErrorText(). If you find you need to return machine-readable information about failures, you should incorporate it into your response protocol buffer and should NOT call SetFailed(). """
1109 return _rcfproto.RcfProtoSession_SetFailed(self, *args)
1110
1112 """If true, indicates that the client canceled the RPC, so the server may as well give up on replying to it. The server should still call the final "done" callback. """
1113 return _rcfproto.RcfProtoSession_IsCanceled(self)
1114 - def _Commit(self, *args): return _rcfproto.RcfProtoSession__Commit(self, *args)
1117
1119 """Returns the Windows username of the client, if a NTLM or Kerberos transport protocol is being used. """
1120 return _rcfproto.RcfProtoSession_getClientUsername(self)
1121
1123 """Returns the transport protocol in use on this server session. """
1124 return _rcfproto.RcfProtoSession_getTransportProtocol(self)
1125
1127 """Returns the transport type of this server session. """
1128 return _rcfproto.RcfProtoSession_getTransportType(self)
1129
1131 """Returns true if compression is enabled for this server session, and false otherwise. Compression is enabled by the client. """
1132 return _rcfproto.RcfProtoSession_getEnableCompression(self)
1133
1135 """Returns the duration of the client connection, in milliseconds. """
1136 return _rcfproto.RcfProtoSession_getConnectionDuration(self)
1137
1139 """Returns the number of remote calls executed on the server session so far. """
1140 return _rcfproto.RcfProtoSession_getRemoteCallCount(self)
1141
1143 """Returns the total number of bytes received by the server session so far. """
1144 return _rcfproto.RcfProtoSession_getTotalBytesReceived(self)
1145
1147 """Returns the total number of bytes sent from the server session so far. """
1148 return _rcfproto.RcfProtoSession_getTotalBytesSent(self)
1149 __swig_destroy__ = _rcfproto.delete_RcfProtoSession
1150 __del__ = lambda self : None;
1151 _RcfProtoSession_swigregister = _rcfproto.RcfProtoSession_swigregister
1152 _RcfProtoSession_swigregister(RcfProtoSession)
1153
1155 """Serves up Protocol Buffer-based services to clients, over one or more server transports.
1156
1157 @undocumented: __swig_setmethods__, __setattr__, __swig_getmethods__, __getattr__, __repr__, __swig_destroy__, __del__"""
1158
1159 __swig_setmethods__ = {}
1160 __setattr__ = lambda self, name, value: _swig_setattr(self, RcfProtoServer, name, value)
1161 __swig_getmethods__ = {}
1162 __getattr__ = lambda self, name: _swig_getattr(self, RcfProtoServer, name)
1163 __repr__ = _swig_repr
1165 this = _rcfproto.new_RcfProtoServer(*args)
1166 try: self.this.append(this)
1167 except: self.this = this
1168 __swig_destroy__ = _rcfproto.delete_RcfProtoServer
1169 __del__ = lambda self : None;
1170
1172 """Starts the RCFProto server. """
1173
1174 self.callbackTable = rcfprotoimpl.SwigCallback_ServerRpc(self)
1175 return _rcfproto.RcfProtoServer_start(self)
1176
1177
1179 """Stops the RCFProto server. """
1180 return _rcfproto.RcfProtoServer_stop(self)
1181 - def _setCallbackTable(self, *args): return _rcfproto.RcfProtoServer__setCallbackTable(self, *args)
1182
1184 """Sets the thread pool the server will use. Thread pools can also be assigned to individual transports. """
1185 return _rcfproto.RcfProtoServer_setThreadPool(self, *args)
1186
1188 """Returns the thread pool the server is using. """
1189 return _rcfproto.RcfProtoServer_getThreadPool(self)
1190
1192 """Adds a transport endpoint to the server. """
1193 return _rcfproto.RcfProtoServer_addEndpoint(self, *args)
1194
1196 """Sets the list of supported protocols the server supports. Clients that connect without using one of the supported protocols are dropped. If the list of supported protocols is empty, all protocols are allowed. Note that supported protocols can also be specified on a server transport, in which case the server transport setting overrides the server setting. """
1197 return _rcfproto.RcfProtoServer_setSupportedTransportProtocols(self, *args)
1198
1200 """Returns the list of supported protocols for the server. """
1201 return _rcfproto.RcfProtoServer_getSupportedTransportProtocols(self)
1202
1204 """Sets the session timeout value, in milliseconds. Client connections that are idle for this amount of time will be dropped by the server. """
1205 return _rcfproto.RcfProtoServer_setSessionTimeoutMs(self, *args)
1206
1208 """Returns the session timeout value, in milliseconds. """
1209 return _rcfproto.RcfProtoServer_getSessionTimeoutMs(self)
1210
1212 """Sets the session harvesting interval, in milliseconds. This setting determines how often the server will scan for idle client connections. """
1213 return _rcfproto.RcfProtoServer_setSessionHarvestingIntervalMs(self, *args)
1214
1216 """Returns the session harvesting interval, in milliseconds. """
1217 return _rcfproto.RcfProtoServer_getSessionHarvestingIntervalMs(self)
1218
1220 """Sets the SSL certificate of the server. """
1221 return _rcfproto.RcfProtoServer_setCertificate(self, *args)
1222
1224 """Gets the SSL certificate of the server. """
1225 return _rcfproto.RcfProtoServer_getCertificate(self)
1226
1228 """Sets the OpenSSL cipher suite. Only applicable when OpenSSL is used as the SSL implementation. """
1229 return _rcfproto.RcfProtoServer_setOpenSslCipherSuite(self, *args)
1230
1232 """Gets the OpenSSL cipher suite. """
1233 return _rcfproto.RcfProtoServer_getOpenSslCipherSuite(self)
1234
1236 """Sets the SSL certificate authority of the server. """
1237 return _rcfproto.RcfProtoServer_setCaCertificate(self, *args)
1238
1240 """Gets the SSL certificate authority of the server. """
1241 return _rcfproto.RcfProtoServer_getCaCertificate(self)
1242
1244 """Sets the Schannel certificate validation setting. Only applicable when using Schannel as the SSL implementation. If this setting is non-empty, it will be used by Schannel to automatically validate peer certificates. """
1245 return _rcfproto.RcfProtoServer_setEnableSchannelCertificateValidation(self, *args)
1246
1248 """Gets the Schannel certificate validation setting. """
1249 return _rcfproto.RcfProtoServer_getEnableSchannelCertificateValidation(self)
1250 - def SetSslImplementation(self, *args): return _rcfproto.RcfProtoServer_setSslImplementation(self, *args)
1251
1253 """Gets the SSL implementation of the server. """
1254 return _rcfproto.RcfProtoServer_getSslImplementation(self)
1255
1257 rcfprotoimpl.RcfProtoServerImpl.BindService(self, svc)
1258
1259
1260
1261
1262 _RcfProtoServer_swigregister = _rcfproto.RcfProtoServer_swigregister
1263 _RcfProtoServer_swigregister(RcfProtoServer)
1264
1265
1266
1267
1269 """RPC controller interface, for both server-side and client-side code.
1270
1271 @undocumented: __swig_setmethods__, __setattr__, __swig_getmethods__, __getattr__, __repr__, __swig_destroy__, __del__"""
1272
1273
1275 if channel:
1276 self.channel = channel
1277 self.session = None
1278 elif session:
1279 self.channel = None
1280 self.session = session
1281
1282
1284 """Resets the RcfProtoController to its initial state so that it may be reused in a new call. Must not be called while an RPC is in progress. """
1285
1286 self.channel = None
1287 self.session = None
1288
1289
1291 """Client-side: After a call has finished, returns true if the call failed. Failed() must not be called before a call has finished. If Failed() returns true, the contents of the response message are undefined. """
1292
1293 return self.channel.Failed()
1294
1295
1296
1297 - def ErrorText(self):
1298 """Client-side: If Failed() is true, returns a human-readable description of the error. """
1299
1300 return self.channel.ErrorText()
1301
1302
1304 """Client-side: Cancels an RPC that is in progress. Once canceled, the "done" callback will still be called and the RcfProtoController will indicate that the call failed at that time. """
1305
1306 self.channel.StartCancel()
1307
1308
1309
1310
1312 """Server-side: Causes Failed() to return true on the client-side. "reason" will be incorporated into the message returned by ErrorText(). If you find you need to return machine-readable information about failures, you should incorporate it into your response protocol buffer and should NOT call SetFailed(). """
1313
1314 self.session.SetFailed(reason)
1315
1316
1318 """Server-side: If true, indicates that the client canceled the RPC, so the server may as well give up on replying to it. The server should still call the final "done" callback. """
1319
1320 self.session.IsCanceled()
1321
1322
1324 """Asks that the given callback be called when the RPC is canceled. The callback will always be called exactly once. If the RPC completes without being canceled, the callback will be called after completion. If the RPC has already been canceled when NotifyOnCancel() is called, the callback will be called immediately. NotifyOnCancel() must be called no more than once per request. """
1325
1326 self.session.NotifyOnCancel(callback)
1327
1330
1333
1334
1335 import rcfprotoimpl
1336 from rcfprotoimpl import *
1337