@ivar last_connect_time: when we last established a connection
@ivar last_loss_time: when we last lost a connection
- @ivar version: the peer's version, from the most recent connection
+ @ivar version: the peer's version, from the most recent announcement
@ivar oldest_supported: the peer's oldest supported version, same
+ @ivar nickname: the peer's self-reported nickname, same
@ivar rref: the RemoteReference, if connected, otherwise None
@ivar remote_host: the IAddress, if connected, otherwise None
self.last_connect_time = None
self.version = ver
self.oldest_supported = oldest
+ self.nickname = nickname
def log(self, *args, **kwargs):
return self._ic.log(*args, **kwargs)
<table n:render="sequence" n:data="services" border="1">
<tr n:pattern="header">
<td>PeerID</td>
+ <td>Nickname</td>
<td>Connected?</td>
<td>Since</td>
<td>Announced</td>
</tr>
<tr n:pattern="item" n:render="service_row">
<td><tt><n:slot name="peerid"/></tt></td>
+ <td><tt><n:slot name="nickname"/></tt></td>
<td><tt><n:slot name="connected"/></tt></td>
<td><tt><n:slot name="since"/></tt></td>
<td><tt><n:slot name="announced"/></tt></td>
time.localtime(rsc.announcement_time)))
ctx.fillSlots("version", rsc.version)
ctx.fillSlots("service_name", rsc.service_name)
+ ctx.fillSlots("nickname", rsc.nickname)
return ctx.tag