-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTFTPServer.h
41 lines (28 loc) · 860 Bytes
/
TFTPServer.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
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/*
* File: TFTPServer.h
* Author: r2d2
*
* Created on July 13, 2016, 11:35 PM
*/
#ifndef TFTPSERVER_H
#define TFTPSERVER_H
#include "TFTPCxn.h"
//Server
class TFTPServer: public TFTPCxn
{
public:
TFTPServer(unsigned int port = DEF_REMOTE_PORT,unsigned int ip_mode = DEF_IPMODE );
virtual ~TFTPServer();
bool listen_for_client( double timeout_time); //in seconds double (supports miliseconds)
//virtual bool receive_packet(TFTP_Packet ** pck_to_recieve);
protected:
TFTPServer(const TFTPServer& orig);
apr_status_t server_stat;//ERROR CONTROL
apr_socket_t *temp_server_socket; //Server uses SOCKET IN TFTPCxn
};
#endif /* TFTPSERVER_H */