Skip to content

Commit a474097

Browse files
EthernetConnectionHandler improving formatting for constructors and removing redundant constructor with strings
1 parent b9e69a9 commit a474097

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

src/EthernetConnectionHandler.h

+13-5
Original file line numberDiff line numberDiff line change
@@ -44,16 +44,24 @@ class EthernetConnectionHandler : public ConnectionHandler
4444
{
4545
public:
4646

47-
EthernetConnectionHandler(unsigned long const timeout = 15000, unsigned long const responseTimeout = 4000, bool const keep_alive = true);
48-
EthernetConnectionHandler(const IPAddress ip, const IPAddress dns, const IPAddress gateway, const IPAddress netmask, unsigned long const timeout = 15000, unsigned long const responseTimeout = 4000, bool const keep_alive = true);
49-
EthernetConnectionHandler(const char * ip, const char * dns, const char * gateway, const char * netmask, unsigned long const timeout = 15000, unsigned long const responseTimeout = 4000, bool const keep_alive = true);
50-
47+
EthernetConnectionHandler(
48+
unsigned long const timeout = 15000,
49+
unsigned long const responseTimeout = 4000,
50+
bool const keep_alive = true);
51+
52+
EthernetConnectionHandler(
53+
const IPAddress ip,
54+
const IPAddress dns,
55+
const IPAddress gateway,
56+
const IPAddress netmask,
57+
unsigned long const timeout = 15000,
58+
unsigned long const responseTimeout = 4000,
59+
bool const keep_alive = true);
5160

5261
virtual unsigned long getTime() override { return 0; }
5362
virtual Client & getClient() override{ return _eth_client; }
5463
virtual UDP & getUDP() override { return _eth_udp; }
5564

56-
5765
protected:
5866

5967
virtual NetworkConnectionState update_handleInit () override;

0 commit comments

Comments
 (0)