Skip to content

Commit

Permalink
EthernetServer - added begin(port) and ctor without parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
JAndrassy committed Oct 8, 2023
1 parent 39103da commit 0be8690
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Ethernet.h
Original file line number Diff line number Diff line change
Expand Up @@ -255,10 +255,12 @@ class EthernetServer : public Server {
private:
uint16_t _port;
public:
EthernetServer() : _port(80) { }
EthernetServer(uint16_t port) : _port(port) { }
EthernetClient available();
EthernetClient accept();
virtual void begin();
void begin(uint16_t port) {_port = port; begin();}
virtual size_t write(uint8_t);
virtual size_t write(const uint8_t *buf, size_t size);
virtual operator bool();
Expand Down

0 comments on commit 0be8690

Please sign in to comment.