Welcome to mirror list, hosted at ThFree Co, Russian Federation.

Network.h « RADDS « src - github.com/Duet3D/RepRapFirmware.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 0cc3db508022827e0c5d28d86676b6fb61bde5c9 (plain)
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
#ifndef NETWORK_H
#define NETWORK_H

#include <inttypes.h>
#include "Platform.h"

const uint8_t MAC_ADDRESS[6] = { 0, 0, 0, 0, 0, 0 };
const uint8_t IP_ADDRESS[4] = { 0, 0, 0, 0 };
const uint8_t NET_MASK[4] = { 0, 0, 0, 0 };
const uint8_t GATE_WAY[4] = { 0, 0, 0, 0 };

// The main network class that drives the network.
class Network
{
public:
	Network(Platform* p) { };
	void Init() const { };
	void Activate() const { };
	void Disable() const { };
	void Enable() const { };
	void Exit() const { }
	void Spin() const { };
	void Interrupt() const { };
	void Diagnostics(MessageType mtype) const { };

	boolean IsEnabled() const { return false; }
	boolean InLwip() const { return false; }
	void SetHostname(const char *name) const { };
	void SetHttpPort(uint16_t port) const { };
	uint16_t GetHttpPort() const { return (uint16_t)0; }
	const uint8_t *IPAddress() const;
};

#endif