Add cli options to the client class, clean up the SDL version a bit

This commit is contained in:
Jan Klopper 2016-07-12 18:37:32 +02:00
parent 4e22d0187e
commit d2f58a6640
3 changed files with 24 additions and 10 deletions

View file

@ -225,8 +225,11 @@ class PixelVloedClient(object):
self.width = width
self.height = height
if self.debug:
print ('displaying on %(ip)s:%(port)d, %(width)d*%(height)dpx' %
self)
print ('displaying on %(ipaddress)s:%(port)d, %(width)d*%(height)dpx' %
{'ipaddress': self.ipaddress,
'port': self.port,
'width': self.width,
'height': self.height})
self.sock = socket.socket(socket.AF_INET, # Internet
socket.SOCK_DGRAM) # UDP