python Programming Glossary: self.sock
Hotmail SSL3 version number error using smtp http://stackoverflow.com/questions/17434143/hotmail-ssl3-version-number-error-using-smtp click on the raw link to download and changed one line self.sock ssl.wrap_socket self.sock keyfile certfile to self.sock ssl.wrap_socket.. to download and changed one line self.sock ssl.wrap_socket self.sock keyfile certfile to self.sock ssl.wrap_socket self.sock keyfile.. self.sock ssl.wrap_socket self.sock keyfile certfile to self.sock ssl.wrap_socket self.sock keyfile certfile ssl_version ssl.PROTOCOL_SSLv3..
Tell urllib2 to use custom DNS http://stackoverflow.com/questions/2236498/tell-urllib2-to-use-custom-dns MyHTTPConnection httplib.HTTPConnection def connect self self.sock socket.create_connection MyResolver self.host self.port self.timeout.. MyResolver self.host self.port self.timeout self.sock ssl.wrap_socket sock self.key_file self.cert_file class MyHTTPHandler..
Error using httlib's HTTPSConnection with PKCS#12 certificate http://stackoverflow.com/questions/2630011/error-using-httlibs-httpsconnection-with-pkcs12-certificate File c python26 lib httplib.py line 1112 in connect self.sock ssl.wrap_socket sock self.key_file self.cert_file File c python26..
Python - How can I fetch emails via POP or IMAP through a proxy? http://stackoverflow.com/questions/3386724/python-how-can-i-fetch-emails-via-pop-or-imap-through-a-proxy self host port IMAP4_PORT self.host host self.port port self.sock sockssocket self.sock.setproxy PROXY_TYPE_SOCKS5 'socks.example.com'.. self.host host self.port port self.sock sockssocket self.sock.setproxy PROXY_TYPE_SOCKS5 'socks.example.com' self.sock.connect.. self.sock.setproxy PROXY_TYPE_SOCKS5 'socks.example.com' self.sock.connect host port self.file self.sock.makefile 'rb' share..
UDP client and server with Twisted Python http://stackoverflow.com/questions/3632210/udp-client-and-server-with-twisted-python object def __init__ self ip '127.255.255.255' port 3000 self.sock socket.socket socket.AF_INET socket.SOCK_DGRAM self.sock.setsockopt.. self.sock socket.socket socket.AF_INET socket.SOCK_DGRAM self.sock.setsockopt socket.SOL_SOCKET socket.SO_REUSEADDR 1 self.ip ip.. socket.SO_REUSEADDR 1 self.ip ip port def send self data self.sock.sendto data self.ip if __name__ __main__ l Listener l.start..
Failing to send email with the Python example http://stackoverflow.com/questions/399129/failing-to-send-email-with-the-python-example port File C Python26 lib smtplib.py line 295 in connect self.sock self._get_socket host port self.timeout File C Python26 lib.. port File C Python26 lib smtplib.py line 295 in connect self.sock self._get_socket host port self.timeout File C Python26 lib.. File C Python26 lib smtplib.py line 755 in _get_socket self.sock ssl.wrap_socket self.sock self.keyfile self.certfile File C..
using pyOpenSSL to create urllib custom opener http://stackoverflow.com/questions/5700289/using-pyopenssl-to-create-urllib-custom-opener verify context.use_privatekey_file settings.PEM_FILE self.sock SSL.Connection context socket.socket socket.AF_INET socket.SOCK_STREAM.. msg File usr lib python2.6 httplib.py line 759 in send self.sock.sendall str OpenSSL.SSL.Error 'SSL routines' 'SSL_write' 'uninitialized'.. are missing doing the connect call in the connect method self.sock.connect someserver.com 443 Also httplib 's https handling has..
Multiple writes get handled as single one http://stackoverflow.com/questions/9959616/multiple-writes-get-handled-as-single-one class Client object def __init__ self self.buffer '' self.sock None def connect self address self.buffer '' self.sock socket.socket.. '' self.sock None def connect self address self.buffer '' self.sock socket.socket self.sock.connect address def get_msg self '''Append.. self address self.buffer '' self.sock socket.socket self.sock.connect address def get_msg self '''Append raw data to buffer..
|