Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/p2p/Service.py
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <mpg@redhat.com>2006-05-11 06:00:37 (GMT)
committer Marco Pesenti Gritti <mpg@redhat.com>2006-05-11 06:00:37 (GMT)
commita8437a39a99ccf5d05d1b2f81084b92a12582e7d (patch)
tree733bc5b99a65c83d4c5e9a311f079244dd78e466 /p2p/Service.py
parent5b97add732a330b13192d43c42bf93a6b9134442 (diff)
Check in some initial code for the new network stuff design.
Diffstat (limited to 'p2p/Service.py')
-rw-r--r--p2p/Service.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/p2p/Service.py b/p2p/Service.py
new file mode 100644
index 0000000..f8ebbeb
--- /dev/null
+++ b/p2p/Service.py
@@ -0,0 +1,18 @@
+class Service(object):
+ def __init__(self, name, host, address, port):
+ self._name = name
+ self._host = host
+ self._address = str(address)
+ self._port = int(port)
+
+ 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