Skip to content

Commit a8c4093

Browse files
committed
fix: marked more immutable methods as const
1 parent 25d76ca commit a8c4093

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/RPAsyncTCP.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1074,14 +1074,14 @@ void AsyncClient::setRxTimeout(uint32_t timeout)
10741074

10751075
/////////////////////////////////////////////////
10761076

1077-
uint32_t AsyncClient::getRxTimeout()
1077+
uint32_t AsyncClient::getRxTimeout() const
10781078
{
10791079
return _rx_since_timeout;
10801080
}
10811081

10821082
/////////////////////////////////////////////////
10831083

1084-
uint32_t AsyncClient::getAckTimeout()
1084+
uint32_t AsyncClient::getAckTimeout() const
10851085
{
10861086
return _ack_timeout;
10871087
}
@@ -1108,7 +1108,7 @@ void AsyncClient::setNoDelay(bool nodelay)
11081108

11091109
/////////////////////////////////////////////////
11101110

1111-
bool AsyncClient::getNoDelay()
1111+
bool AsyncClient::getNoDelay() const
11121112
{
11131113
if (!_pcb)
11141114
return false;
@@ -1158,7 +1158,7 @@ uint32_t AsyncClient::getLocalAddress() const
11581158

11591159
/////////////////////////////////////////////////
11601160

1161-
uint16_t AsyncClient::getLocalPort()
1161+
uint16_t AsyncClient::getLocalPort() const
11621162
{
11631163
if (!_pcb)
11641164
return 0;

0 commit comments

Comments
 (0)