summaryrefslogtreecommitdiff
path: root/voctogui/lib/connection.py
diff options
context:
space:
mode:
authorMaZderMind <git@mazdermind.de>2016-02-04 17:46:31 +0100
committerMaZderMind <git@mazdermind.de>2016-02-04 17:46:31 +0100
commit3e4b04b2d1bfd96b7018a2058cbb0a847e012cf7 (patch)
tree53da2041ced4fc463126725d6e66589897eb6576 /voctogui/lib/connection.py
parent140d4651afcdbf72a4b2637acd0c71925816eb82 (diff)
parent54775670b049a338d97b57218d36da00d778b432 (diff)
Merge branch 'nettime'
Diffstat (limited to 'voctogui/lib/connection.py')
-rw-r--r--voctogui/lib/connection.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/voctogui/lib/connection.py b/voctogui/lib/connection.py
index 6a9c025..6f8245f 100644
--- a/voctogui/lib/connection.py
+++ b/voctogui/lib/connection.py
@@ -7,17 +7,21 @@ from gi.repository import Gtk, GObject
log = logging.getLogger('Connection')
conn = None
+ip = None
port = 9999
command_queue = Queue()
signal_handlers = {}
def establish(host):
- global conn, port, log
+ global conn, port, log, ip
log.info('establishing Connection to %s', host)
conn = socket.create_connection( (host, port) )
log.debug('Connection successful \o/')
+ ip = conn.getpeername()[0]
+ log.debug('Remote-IP is %s', ip)
+
def fetchServerConfig():
global conn, log