Skip to content

Commit 00f90bd

Browse files
authored
Merge pull request #141 from pennam/setConnectionTimeout
Avoid shadowing Stream.setTimeout
2 parents fbb0c56 + 0cd9344 commit 00f90bd

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Diff for: libraries/SSLClient/src/SSLClient.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ void SSLClient::setHandshakeTimeout(unsigned long handshake_timeout)
406406
sslclient->handshake_timeout = handshake_timeout * 1000;
407407
}
408408

409-
void SSLClient::setTimeout(unsigned long seconds)
409+
void SSLClient::setConnectionTimeout(unsigned long seconds)
410410
{
411411
_timeout = seconds * 1000;
412412
}

Diff for: libraries/SSLClient/src/SSLClient.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ class SSLClient : public Client
8383
bool verify(const char* fingerprint, const char* domain_name);
8484
void setHandshakeTimeout(unsigned long handshake_timeout);
8585

86-
void setTimeout(unsigned long seconds);
86+
void setConnectionTimeout(unsigned long seconds);
8787

8888
operator bool()
8989
{

Diff for: libraries/lwIpWrapper/src/lwipClient.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class lwipClient : public Client {
5656
{
5757
return (_tcp_client->pcb->remote_port);
5858
};
59-
void setTimeout(uint16_t timeout)
59+
void setConnectionTimeout(uint16_t timeout)
6060
{
6161
_timeout = timeout;
6262
}

0 commit comments

Comments
 (0)