2006-05-11 08:00:37 +02:00
|
|
|
class Service(object):
|
2006-05-11 20:46:34 +02:00
|
|
|
def __init__(self, name, host, address, port, multicast=False):
|
2006-05-11 08:00:37 +02:00
|
|
|
self._name = name
|
|
|
|
self._host = host
|
|
|
|
self._address = str(address)
|
|
|
|
self._port = int(port)
|
2006-05-11 20:46:34 +02:00
|
|
|
self._multicast = multicast
|
2006-05-11 08:00:37 +02:00
|
|
|
|
|
|
|
def get_name(self):
|
|
|
|
return self._name
|
|
|
|
|
|
|
|
def get_host(self):
|
|
|
|
return self._host
|
|
|
|
|
|
|
|
def get_address(self):
|
|
|
|
return self._address
|
|
|
|
|
|
|
|
def get_port(self):
|
|
|
|
return self._port
|
2006-05-11 20:46:34 +02:00
|
|
|
|
|
|
|
def is_multicast(self):
|
|
|
|
return self._multicast
|