summaryrefslogtreecommitdiff
path: root/node/UdpSocket.cpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2013-08-05 16:06:16 -0400
committerAdam Ierymenko <adam.ierymenko@gmail.com>2013-08-05 16:06:16 -0400
commita7c4cbe53aad51b3e74fa9cb1af975cb8d356954 (patch)
treee4578c51ea7239aeaf5dd6ebcaa844a0fb00f9ea /node/UdpSocket.cpp
parent3368330b777da9561539c04ea589aa7060e1d569 (diff)
downloadinfinitytier-a7c4cbe53aad51b3e74fa9cb1af975cb8d356954.tar.gz
infinitytier-a7c4cbe53aad51b3e74fa9cb1af975cb8d356954.zip
CLI debugging, got rid of nasty old Thread class and replaced with newer cleaner portable idiom.
Diffstat (limited to 'node/UdpSocket.cpp')
-rw-r--r--node/UdpSocket.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/node/UdpSocket.cpp b/node/UdpSocket.cpp
index 6178d16e..db2c4b56 100644
--- a/node/UdpSocket.cpp
+++ b/node/UdpSocket.cpp
@@ -55,7 +55,6 @@ UdpSocket::UdpSocket(
void (*packetHandler)(UdpSocket *,void *,const InetAddress &,const void *,unsigned int),
void *arg)
throw(std::runtime_error) :
- Thread(),
_packetHandler(packetHandler),
_arg(arg),
_localPort(localPort),
@@ -121,7 +120,7 @@ UdpSocket::UdpSocket(
}
}
- start();
+ _thread = Thread<UdpSocket>::start(this);
}
UdpSocket::~UdpSocket()
@@ -146,7 +145,7 @@ bool UdpSocket::send(const InetAddress &to,const void *data,unsigned int len,int
}
}
-void UdpSocket::main()
+void UdpSocket::threadMain()
throw()
{
char buf[32768];