forked from LaloLoop/TFTPApp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tftpclient.h
executable file
·41 lines (30 loc) · 965 Bytes
/
tftpclient.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#ifndef TFTPCLIENT_H
#define TFTPCLIENT_H
#include <QString>
#include "tftpcommon.h"
#include "socketudp.h"
#include "inetsockaddr.h"
#include "socketmonitor.h"
#include "senderworker.h"
#include "writerworker.h"
class TFTPClient: public TFTPCommon{
// SocketUDP * sLocal;
InetSockAddr * localAddr, *dstAddr;
// SocketMonitor * monitor;
SenderWorker *sWorker;
WriterWorker *wWorker;
QString fileName;
QString octet;
public:
TFTPClient(QObject *parent = 0);
TFTPClient(QString dstIP, qint16 puerto, QString fileName, QObject *parent = 0);
void setReqInfo(QString dstIP, qint16 puerto, QString fileName);
void putFile();
void getFile();
void stopTransfer();
public slots:
virtual void atenderCliente(rqCode, QString, qint16,
QString fileName, QString mode);
virtual void clienteAtendido(rqCode);
};
#endif // TFTPCLIENT_H