Back to index

python3.2  3.2.2
Public Member Functions | Public Attributes
test.ssl_servers.HTTPSServer Class Reference

List of all members.

Public Member Functions

def __init__
def __str__
def get_request

Public Attributes

 context

Detailed Description

Definition at line 21 of file ssl_servers.py.


Constructor & Destructor Documentation

def test.ssl_servers.HTTPSServer.__init__ (   self,
  server_address,
  handler_class,
  context 
)

Definition at line 23 of file ssl_servers.py.

00023 
00024     def __init__(self, server_address, handler_class, context):
00025         _HTTPServer.__init__(self, server_address, handler_class)
00026         self.context = context

Here is the caller graph for this function:


Member Function Documentation

Definition at line 27 of file ssl_servers.py.

00027 
00028     def __str__(self):
00029         return ('<%s %s:%s>' %
00030                 (self.__class__.__name__,
00031                  self.server_name,
00032                  self.server_port))

Definition at line 33 of file ssl_servers.py.

00033 
00034     def get_request(self):
00035         # override this to wrap socket with SSL
00036         try:
00037             sock, addr = self.socket.accept()
00038             sslconn = self.context.wrap_socket(sock, server_side=True)
00039         except socket.error as e:
00040             # socket errors are silenced by the caller, print them here
00041             if support.verbose:
00042                 sys.stderr.write("Got an error:\n%s\n" % e)
00043             raise
00044         return sslconn, addr

Here is the caller graph for this function:


Member Data Documentation

Definition at line 25 of file ssl_servers.py.


The documentation for this class was generated from the following file: