[ External Interface | The ECLiPSe Built-In Predicates | Reference Manual | Alphabetic Index ]

# peer(?Peer)

Checks or enumerates peer names

Peer
  Peer name (atom or variable).

## Description

If Peer is a variable, this predicate enumerates the current peers (remote and embedded). If Peer is an atom, it checks if that is the name of a current peer.

### Modes and Determinism

- peer(-) is nondet
- peer(+) is semidet

### Fail Conditions

Peer is not a current peer.

### Exceptions

(5) type error
  Peer is neither an atom or a variable.

## See Also

peer_get_property / 3