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: 8e315574f0cd04c4c860bb80297c0a4d4b349f2f (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
35
36
37
38
#ifndef NETWORK_H
#define NETWORK_H

#include "RepRapFirmware.h"
#include "MessageType.h"

const uint8_t DefaultMacAddress[6] = { 0, 0, 0, 0, 0, 0 };
const uint8_t DefaultIpAddress[4] = { 0, 0, 0, 0 };
const uint8_t DefaultNetMask[4] = { 0, 0, 0, 0 };
const uint8_t DefaultGateway[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(bool full) const { };
	void Interrupt() const { };
	void Diagnostics(MessageType mtype) const { };

	void EnableProtocol(int protocol, int port, bool secure, StringRef& reply) { }
	void DisableProtocol(int protocol, StringRef& reply) { }
	void ReportProtocols(StringRef& reply) const;

	bool IsEnabled() const { return false; }
	bool 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 *GetIPAddress() const;
};

#endif