¡@

Home 

python Programming Glossary: self.host

Tell urllib2 to use custom DNS

http://stackoverflow.com/questions/2236498/tell-urllib2-to-use-custom-dns

and wrap the connect method to modify self.host before passing it to socket.create_connection . Then subclass.. connect self self.sock socket.create_connection MyResolver self.host self.port self.timeout class MyHTTPSConnection httplib.HTTPSConnection.. def connect self sock socket.create_connection MyResolver self.host self.port self.timeout self.sock ssl.wrap_socket sock self.key_file..

Error using httlib's HTTPSConnection with PKCS#12 certificate

http://stackoverflow.com/questions/2630011/error-using-httlibs-httpsconnection-with-pkcs12-certificate

cert_file host usrname passwd self.cert_file cert_file self.host host self.conn httplib.HTTPSConnection host self.host port self.port.. self.host host self.conn httplib.HTTPSConnection host self.host port self.port key_file cert_file cert_file cert_file self.conn.putrequest..

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

class SocksIMAP4 IMAP4 def open self host port IMAP4_PORT self.host host self.port port self.sock sockssocket self.sock.setproxy..

How to develop an Avahi client/server

http://stackoverflow.com/questions/3430245/how-to-develop-an-avahi-client-server

text self.name name self.stype stype self.domain domain self.host host self.port port self.text text def publish self bus dbus.SystemBus.. dbus.UInt32 0 self.name self.stype self.domain self.host dbus.UInt16 self.port self.text g.Commit self.group g def unpublish..

UDP client and server with Twisted Python

http://stackoverflow.com/questions/3632210/udp-client-and-server-with-twisted-python

host '127.255.255.255' port 3000 self.packet packet.pack self.host host self.port port def startProtocol self self.transport.write.. def startProtocol self self.transport.write self.packet self.host self.port if __name__ __main__ packet Packet packet.packet_type.. self name host port self.name name self.loopObj None self.host host self.port port def startProtocol self # Called when transport..

Is Tornado really non-blocking?

http://stackoverflow.com/questions/3638844/is-tornado-really-non-blocking

logging.error Error connecting to MySQL on s self.host self.close raise As far as I know calls to the MySQLdb which..

Python SocketServer: sending to multiple clients?

http://stackoverflow.com/questions/3670127/python-socketserver-sending-to-multiple-clients

ip '' port 0 def __init__ self ip port name self.name name self.hostIp ip self.hostPort port self.s socket.socket socket.AF_INET.. __init__ self ip port name self.name name self.hostIp ip self.hostPort port self.s socket.socket socket.AF_INET socket.SOCK_STREAM.. socket.AF_INET socket.SOCK_STREAM self.s.connect self.hostIp self.hostPort def reco self self.s socket.socket socket.AF_INET..

No connection could be made because the target machine actively refused it

http://stackoverflow.com/questions/4532335/no-connection-could-be-made-because-the-target-machine-actively-refused-it

socket.AF_INET socket.SOCK_STREAM self.conn.connect self.host self.port That is the code causing the error. The host and port..

Problem with multi threaded Python app and socket connections

http://stackoverflow.com/questions/4783735/problem-with-multi-threaded-python-app-and-socket-connections

def __init__ self host port threading.Thread.__init__ self self.host host self.port port self.status def run self self.sk socket.socket.. self.sk.settimeout 20 try self.sk.connect self.host self.port except Exception err self.status str err else self.status..

Context manager for Python's MySQLdb

http://stackoverflow.com/questions/8067690/context-manager-for-pythons-mysqldb

config.MYDB driver MySQLdb self.cursorclass cursorclass self.host host self.user user self.passwd passwd self.dbname dbname self.driver..

Python - Sending files over sockets

http://stackoverflow.com/questions/9385509/python-sending-files-over-sockets

'' def __init__ self port self.port port self.gate.bind self.host self.port self.listen def listen self self.gate.listen 10 while.. 0 file '' def __init__ self host port file self.port port self.host host self.file file self.connect def connect self self.gateway.connect.. file self.connect def connect self self.gateway.connect self.host self.port self.sendFileName self.sendFile def sendFileName self..

Thread synchronization, Python

http://stackoverflow.com/questions/9521113/thread-synchronization-python

Server #initializing server socket def __init__ self event self.host 'localhost' self.port 50000 self.backlog 5 self.size 1024 self.server.. socket.AF_INET socket.SOCK_STREAM self.server.bind self.host self.port self.server.listen 5 print Listening to port str self.port..