Fix infinite recursion in TCPConnection.(local/remote)Address properties.
This commit is contained in:
parent
373f82c16b
commit
5249c1c4c6
|
@ -443,8 +443,8 @@ struct TCPConnection {
|
||||||
@property void readTimeout(Duration duration) { m_context.readTimeout = duration; }
|
@property void readTimeout(Duration duration) { m_context.readTimeout = duration; }
|
||||||
@property Duration readTimeout() const { return m_context.readTimeout; }
|
@property Duration readTimeout() const { return m_context.readTimeout; }
|
||||||
@property string peerAddress() const { return m_context.remoteAddress.toString(); }
|
@property string peerAddress() const { return m_context.remoteAddress.toString(); }
|
||||||
@property NetworkAddress localAddress() const { return localAddress; }
|
@property NetworkAddress localAddress() const { return m_context.localAddress; }
|
||||||
@property NetworkAddress remoteAddress() const { return remoteAddress; }
|
@property NetworkAddress remoteAddress() const { return m_context.remoteAddress; }
|
||||||
@property bool connected()
|
@property bool connected()
|
||||||
const {
|
const {
|
||||||
if (m_socket == StreamSocketFD.invalid) return false;
|
if (m_socket == StreamSocketFD.invalid) return false;
|
||||||
|
|
Loading…
Reference in a new issue