code: def incoming_connections(self):
          
  
          # Incoming connections are on the left.
          return list(
              takewhile(lambda c: c.direction == INCOMING, self.connections)
          )
docs: Returns a list of all incoming connections for this peer.