summaryrefslogtreecommitdiff
path: root/node/UdpSocket.cpp
diff options
context:
space:
mode:
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];