We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent be067d9 commit 507d586Copy full SHA for 507d586
src/EthernetServer.cpp
@@ -6,9 +6,18 @@ extern "C" {
6
#include "EthernetClient.h"
7
#include "EthernetServer.h"
8
9
+EthernetServer::EthernetServer()
10
+{
11
+ _port = 80;
12
+ _tcp_client[MAX_CLIENT] = {};
13
+ _tcp_server = {};
14
+}
15
+
16
EthernetServer::EthernetServer(uint16_t port)
17
{
18
_port = port;
19
20
21
}
22
23
void EthernetServer::begin()
src/EthernetServer.h
@@ -14,7 +14,8 @@ public Server {
void accept(void);
public:
- EthernetServer(uint16_t);
+ EthernetServer();
+ EthernetServer(uint16_t port);
EthernetClient available();
virtual void begin();
virtual size_t write(uint8_t);
0 commit comments