Package cobra :: Class SocketBuilder
[hide private]
[frames] | no frames]

Class SocketBuilder

source code

Instance Methods [hide private]
 
__init__(self, host, port, timeout=None) source code
 
setTimeout(self, timeout)
Set the timeout for newly created sockets.
source code
 
setSslEnabled(self, status) source code
 
setSslCa(self, crtfile)
Set the SSL Certificate Authority for this socket builder.
source code
 
setSslClientCert(self, crtfile, keyfile)
Set the cert/key used by this client to negotiate SSL.
source code
 
__call__(self) source code
Method Details [hide private]

setSslCa(self, crtfile)

source code 

Set the SSL Certificate Authority for this socket builder.

( This enables checking the server's presented cert )