Skip to content

Commit 02fc241

Browse files
committed
style fix
1 parent ffd1984 commit 02fc241

2 files changed

Lines changed: 11 additions & 11 deletions

File tree

‎Net/include/Poco/Net/SocketImpl.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ class Net_API SocketImpl: public Poco::RefCountedObject
424424
Poco::Timespan _recvTimeout;
425425
Poco::Timespan _sndTimeout;
426426
bool _blocking;
427-
bool _isbrokentimeout;
427+
bool _isBrokenTimeout;
428428

429429
friend class Socket;
430430
friend class SecureSocketImpl;

‎Net/src/SocketImpl.cpp‎

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ namespace Poco {
4949
namespace Net {
5050

5151

52-
bool CheckIsBrokenTimeout()
52+
bool checkIsBrokenTimeout()
5353
{
5454
#if defined(POCO_BROKEN_TIMEOUTS)
5555
return true;
@@ -68,15 +68,15 @@ bool CheckIsBrokenTimeout()
6868
SocketImpl::SocketImpl():
6969
_sockfd(POCO_INVALID_SOCKET),
7070
_blocking(true),
71-
_isbrokentimeout(CheckIsBrokenTimeout())
71+
_isBrokenTimeout(checkIsBrokenTimeout())
7272
{
7373
}
7474

7575

7676
SocketImpl::SocketImpl(poco_socket_t sockfd):
7777
_sockfd(sockfd),
7878
_blocking(true),
79-
_isbrokentimeout(CheckIsBrokenTimeout())
79+
_isBrokenTimeout(checkIsBrokenTimeout())
8080
{
8181
}
8282

@@ -285,7 +285,7 @@ void SocketImpl::shutdown()
285285

286286
int SocketImpl::sendBytes(const void* buffer, int length, int flags)
287287
{
288-
if (_isbrokentimeout)
288+
if (_isBrokenTimeout)
289289
{
290290
if (_sndTimeout.totalMicroseconds() != 0)
291291
{
@@ -308,7 +308,7 @@ int SocketImpl::sendBytes(const void* buffer, int length, int flags)
308308

309309
int SocketImpl::receiveBytes(void* buffer, int length, int flags)
310310
{
311-
if (_isbrokentimeout)
311+
if (_isBrokenTimeout)
312312
{
313313
if (_recvTimeout.totalMicroseconds() != 0)
314314
{
@@ -358,7 +358,7 @@ int SocketImpl::sendTo(const void* buffer, int length, const SocketAddress& addr
358358

359359
int SocketImpl::receiveFrom(void* buffer, int length, SocketAddress& address, int flags)
360360
{
361-
if (_isbrokentimeout)
361+
if (_isBrokenTimeout)
362362
{
363363
if (_recvTimeout.totalMicroseconds() != 0)
364364
{
@@ -590,7 +590,7 @@ void SocketImpl::setSendTimeout(const Poco::Timespan& timeout)
590590
#elif !defined(POCO_BROKEN_TIMEOUTS)
591591
setOption(SOL_SOCKET, SO_SNDTIMEO, timeout);
592592
#endif
593-
if (_isbrokentimeout)
593+
if (_isBrokenTimeout)
594594
_sndTimeout = timeout;
595595
}
596596

@@ -605,7 +605,7 @@ Poco::Timespan SocketImpl::getSendTimeout()
605605
#elif !defined(POCO_BROKEN_TIMEOUTS)
606606
getOption(SOL_SOCKET, SO_SNDTIMEO, result);
607607
#endif
608-
if (_isbrokentimeout)
608+
if (_isBrokenTimeout)
609609
result = _sndTimeout;
610610
return result;
611611
}
@@ -621,7 +621,7 @@ void SocketImpl::setReceiveTimeout(const Poco::Timespan& timeout)
621621
setOption(SOL_SOCKET, SO_RCVTIMEO, timeout);
622622
#endif
623623
#endif
624-
if (_isbrokentimeout)
624+
if (_isBrokenTimeout)
625625
_recvTimeout = timeout;
626626
}
627627

@@ -636,7 +636,7 @@ Poco::Timespan SocketImpl::getReceiveTimeout()
636636
#elif !defined(POCO_BROKEN_TIMEOUTS)
637637
getOption(SOL_SOCKET, SO_RCVTIMEO, result);
638638
#endif
639-
if (_isbrokentimeout)
639+
if (_isBrokenTimeout)
640640
result = _recvTimeout;
641641
return result;
642642
}

0 commit comments

Comments
 (0)