def Inbox(newpacket, info, status, message): """ This is called when some ``packet`` was received from remote peer - user seems to be ONLINE. """ if newpacket.OwnerID == my_id.getLocalID(): return False if newpacket.RemoteID != my_id.getLocalID(): return False A(newpacket.OwnerID, 'inbox-packet', (newpacket, info, status, message)) ratings.remember_connected_time(newpacket.OwnerID) return False
def Inbox(newpacket, proto, host): """ This is called when some `dhnpacket` was received from remote peer - user seems to be ONLINE. """ A(newpacket.OwnerID, 'inbox-packet', (newpacket, proto, host)) ratings.remember_connected_time(newpacket.OwnerID)