Add cli options to the client class, clean up the SDL version a bit
This commit is contained in:
parent
4e22d0187e
commit
d2f58a6640
3 changed files with 24 additions and 10 deletions
7
vloed.py
7
vloed.py
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue