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
|
/*
* NetworkDefs.h
*
* Created on: 25 Dec 2016
* Author: David
*/
#ifndef SRC_DUETNG_DUETETHERNET_NETWORKDEFS_H_
#define SRC_DUETNG_DUETETHERNET_NETWORKDEFS_H_
#include <cstdint>
class NetworkTransaction;
class ConnectionState;
class NetworkBuffer;
// Definition of how a Connection is represented, for Webserver module
typedef ConnectionState *Connection;
const Connection NoConnection = nullptr;
typedef uint8_t SocketNumber;
const SocketNumber NoSocket = 255;
typedef uint16_t Port;
const uint8_t DefaultMacAddress[6] = { 0xBE, 0xEF, 0xDE, 0xAD, 0xFE, 0xED }; // Need some sort of default...
const uint8_t DefaultIpAddress[4] = { 0, 0, 0, 0 }; // Need some sort of default...
const uint8_t DefaultNetMask[4] = { 255, 255, 255, 0 };
const uint8_t DefaultGateway[4] = { 0, 0, 0, 0 };
const Port DefaultHttpPort = 80;
const Port FTP_PORT = 21;
const Port TELNET_PORT = 23;
// MSS is defined in lwip
#include "Lwip/lwipopts.h"
#endif /* SRC_DUETNG_DUETETHERNET_NETWORKDEFS_H_ */
|