~funderscore blog cgit wiki get in touch
aboutsummaryrefslogtreecommitdiff
blob: da0920de1182b3684579b5ecdc73da7b56791255 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* SPDX-License-Identifier: GPL-2.0 */
/*
 * Duncan Hare Copyright 2017
 */

/**
 * wget_start() - begin wget
 */
void wget_start(void);

enum wget_state {
	WGET_CLOSED,
	WGET_CONNECTING,
	WGET_CONNECTED,
	WGET_TRANSFERRING,
	WGET_TRANSFERRED
};

#define DEBUG_WGET		0	/* Set to 1 for debug messages */
#define SERVER_PORT		80
#define WGET_RETRY_COUNT	30
#define WGET_TIMEOUT		2000UL