2 Copyright 2006 Chris Tallon
4 This file is part of VOMP.
6 VOMP is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
11 VOMP is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with VOMP; if not, write to the Free Software
18 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
25 log = Log::getInstance();
35 if (threadIsActive()) threadCancel();
43 if (threadIsActive()) return 1;
44 log->log("Tftpd", Log::DEBUG, "Starting Tftpd");
48 log->log("Tftpd", Log::DEBUG, "DSock init error");
55 log->log("Tftpd", Log::DEBUG, "Thread start error");
60 log->log("Tftpd", Log::DEBUG, "Bootp replier started");
64 void Tftpd::threadMethod()
69 log->log("Tftpd", Log::DEBUG, "Starting wait");
70 retval = ds.waitforMessage(0);
71 log->log("Tftpd", Log::DEBUG, "Wait finished");
75 log->log("Tftpd", Log::CRIT, "Wait for packet error");
84 TftpClient* t = new TftpClient();
85 t->run(ds.getFromIPA(), ds.getFromPort(), (UCHAR*)ds.getData(), ds.getDataLength());