|
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
#include "udp.h"
#define DEFAULT_PORT 69 //SEXY PROGRAMMING...
#define VERSION "1.0"
#define BUFSIZE 512
#define RRQ 1
#define DATA 3
#define ACK 4
#define MODE_OCTAL (char*)"octet"
using namespace std;
uint8_t recvFile(char *filename, string *error, int s, struct sockaddr_in *si);
uint8_t sendACK(uint16_t numBlock, int s, struct sockaddr_in *si);
uint8_t sendRRQ(char *filename, char *mode, int s, struct sockaddr_in *si);
void printVersion();
void printHelp(bool longVersion);
#endif
|