hopefully the last srv commit
This commit is contained in:
parent
f8ab62c2c4
commit
bde8d6b26c
|
@ -56,7 +56,6 @@ class TCPsocket(PlugIn):
|
||||||
PlugIn.__init__(self)
|
PlugIn.__init__(self)
|
||||||
self.DBG_LINE='socket'
|
self.DBG_LINE='socket'
|
||||||
self._exported_methods=[self.send,self.disconnect]
|
self._exported_methods=[self.send,self.disconnect]
|
||||||
self._server = server
|
|
||||||
|
|
||||||
# SRV resolver
|
# SRV resolver
|
||||||
if 'dns' in globals(): # if dnspython is available support SRV
|
if 'dns' in globals(): # if dnspython is available support SRV
|
||||||
|
@ -76,9 +75,11 @@ class TCPsocket(PlugIn):
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
server = (host, port)
|
server = (host, port)
|
||||||
# end of SRV resolver
|
# end of SRV resolver
|
||||||
|
|
||||||
|
self._server = server
|
||||||
|
|
||||||
def plugin(self, owner):
|
def plugin(self, owner):
|
||||||
""" Fire up connection. Return non-empty string on success.
|
""" Fire up connection. Return non-empty string on success.
|
||||||
Also registers self.disconnected method in the owner's dispatcher.
|
Also registers self.disconnected method in the owner's dispatcher.
|
||||||
|
|
Loading…
Reference in New Issue