Created
August 3, 2011 10:16
-
-
Save ttreitlinger/1122329 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class SSLSocket: | |
def setup(self): | |
# create the SSL socket | |
pass | |
def writeAndRead(self, request): | |
# send request to server | |
#... | |
# read response from server | |
#... | |
return response | |
def useSSLSocket(): | |
socket = SSLSocket() | |
socket.setup() | |
socket.writeAndRead('123456') | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment