Vega strike Python Modules doc  0.5.1
Documentation of the " Modules " folder of Vega strike
 All Data Structures Namespaces Files Functions Variables
SSLFakeSocket Class Reference

Public Member Functions

def __init__
 
def send
 
def close
 

Data Fields

 realsock
 
 sslobj
 

Detailed Description

A fake socket object that really wraps a SSLObject.

It only supports what is needed in smtplib.

Definition at line 127 of file smtplib.py.

Constructor & Destructor Documentation

def __init__ (   self,
  realsock,
  sslobj 
)

Definition at line 132 of file smtplib.py.

133  def __init__(self, realsock, sslobj):
134  self.realsock = realsock
135  self.sslobj = sslobj

Member Function Documentation

def close (   self)

Definition at line 140 of file smtplib.py.

141  def close(self):
142  self.realsock.close()
def send (   self,
  str 
)

Definition at line 136 of file smtplib.py.

137  def send(self, str):
138  self.sslobj.write(str)
139  return len(str)

Field Documentation

realsock

Definition at line 133 of file smtplib.py.

sslobj

Definition at line 134 of file smtplib.py.


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