[atlantik-cvs] CVS: kdegames/atlantik/libatlantikclient klatencytimer.h,1.1,1.2 klatencytimer.cpp,1.1,1.2
[email protected] Thu, 24 Jul 2003 20:33:32 +0200 (CEST)
| Newsgroups | gmane.comp.kde.devel.atlantik |
|---|---|
| Message-ID | <[email protected]> |
Update of /home/kde/kdegames/atlantik/libatlantikclient
In directory office:/tmp/cvs-serv136
Modified Files:
klatencytimer.h klatencytimer.cpp
Log Message:
Added KLatencyTimer::host() const to retrieve the hostname
Index: klatencytimer.h
===================================================================
RCS file: /home/kde/kdegames/atlantik/libatlantikclient/klatencytimer.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- klatencytimer.h 24 Jul 2003 18:12:27 -0000 1.1
+++ klatencytimer.h 24 Jul 2003 18:33:29 -0000 1.2
@@ -96,6 +96,11 @@
void setPort(int port);
/**
+ * Retrieves the host name
+ */
+ QString host() const;
+
+ /**
* Sets the target host. The @p host parameter must be
* the string representation of a numeric IP address
* (v4 or v6). Host names must be resolved by other
Index: klatencytimer.cpp
===================================================================
RCS file: /home/kde/kdegames/atlantik/libatlantikclient/klatencytimer.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- klatencytimer.cpp 24 Jul 2003 18:12:27 -0000 1.1
+++ klatencytimer.cpp 24 Jul 2003 18:33:29 -0000 1.2
@@ -106,6 +106,11 @@
m_port = port;
}
+QString KLatencyTimer::host() const
+{
+ return d->target.nodeName();
+}
+
void KLatencyTimer::setHost(const QString& node)
{
d->target.setHost(node);