# Class: MoneroPeer

## MoneroPeer()

Models a peer to the daemon.

## Constructor

#### new MoneroPeer()

Source:
  - src/main/js/daemon/model/MoneroPeer.js, line 6

### Methods

#### getAddress()

Source:
  - src/main/js/daemon/model/MoneroPeer.js, line 28

#### getAvgDownload()

Source:
  - src/main/js/daemon/model/MoneroPeer.js, line 115

#### getAvgUpload()

Source:
  - src/main/js/daemon/model/MoneroPeer.js, line 124

#### getCurrentDownload()

Source:
  - src/main/js/daemon/model/MoneroPeer.js, line 133

#### getCurrentUpload()

Source:
  - src/main/js/daemon/model/MoneroPeer.js, line 142

#### getHeight()

Source:
  - src/main/js/daemon/model/MoneroPeer.js, line 151

#### getHost()

Source:
  - src/main/js/daemon/model/MoneroPeer.js, line 37

#### getId()

Source:
  - src/main/js/daemon/model/MoneroPeer.js, line 19

#### getId()

Source:
  - src/main/js/daemon/model/MoneroPeer.js, line 106

#### getLastSeenTimestamp()

Source:
  - src/main/js/daemon/model/MoneroPeer.js, line 70

#### getLiveTime()

Source:
  - src/main/js/daemon/model/MoneroPeer.js, line 169

#### getNumReceives()

Source:
  - src/main/js/daemon/model/MoneroPeer.js, line 196

#### getNumSends()

Source:
  - src/main/js/daemon/model/MoneroPeer.js, line 205

#### getNumSupportFlags()

Source:
  - src/main/js/daemon/model/MoneroPeer.js, line 241

#### getPort()

Source:
  - src/main/js/daemon/model/MoneroPeer.js, line 46

#### getPruningSeed()

Source:
  - src/main/js/daemon/model/MoneroPeer.js, line 79

#### getReceiveIdleTime()

Source:
  - src/main/js/daemon/model/MoneroPeer.js, line 214

#### getRpcCreditsPerHash()

Source:
  - src/main/js/daemon/model/MoneroPeer.js, line 97

#### getRpcPort()

Source:
  - src/main/js/daemon/model/MoneroPeer.js, line 88

#### getSendIdleTime()

Source:
  - src/main/js/daemon/model/MoneroPeer.js, line 223

#### getState()

Source:
  - src/main/js/daemon/model/MoneroPeer.js, line 232

#### getType()

Source:
  - src/main/js/daemon/model/MoneroPeer.js, line 250

#### isIncoming()

Source:
  - src/main/js/daemon/model/MoneroPeer.js, line 160

#### isLocalHost()

Source:
  - src/main/js/daemon/model/MoneroPeer.js, line 187

#### isLocalIp()

Source:
  - src/main/js/daemon/model/MoneroPeer.js, line 178

#### isOnline() → {boolean}

Indicates if the peer was online when last checked (aka "white listed" as opposed to "gray listed").

Source:
  - src/main/js/daemon/model/MoneroPeer.js, line 61

##### Returns:

true if peer was online when last checked, false otherwise

Type
  boolean

#### setAddress()

Source:
  - src/main/js/daemon/model/MoneroPeer.js, line 32

#### setAvgDownload()

Source:
  - src/main/js/daemon/model/MoneroPeer.js, line 119

#### setAvgUpload()

Source:
  - src/main/js/daemon/model/MoneroPeer.js, line 128

#### setCurrentDownload()

Source:
  - src/main/js/daemon/model/MoneroPeer.js, line 137

#### setCurrentUpload()

Source:
  - src/main/js/daemon/model/MoneroPeer.js, line 146

#### setHeight()

Source:
  - src/main/js/daemon/model/MoneroPeer.js, line 155

#### setHost()

Source:
  - src/main/js/daemon/model/MoneroPeer.js, line 41

#### setId()

Source:
  - src/main/js/daemon/model/MoneroPeer.js, line 23

#### setId()

Source:
  - src/main/js/daemon/model/MoneroPeer.js, line 110

#### setIsIncoming()

Source:
  - src/main/js/daemon/model/MoneroPeer.js, line 164

#### setIsLocalHost()

Source:
  - src/main/js/daemon/model/MoneroPeer.js, line 191

#### setIsLocalIp()

Source:
  - src/main/js/daemon/model/MoneroPeer.js, line 182

#### setIsOnline()

Source:
  - src/main/js/daemon/model/MoneroPeer.js, line 65

#### setLastSeenTimestamp()

Source:
  - src/main/js/daemon/model/MoneroPeer.js, line 74

#### setLiveTime()

Source:
  - src/main/js/daemon/model/MoneroPeer.js, line 173

#### setNumReceives()

Source:
  - src/main/js/daemon/model/MoneroPeer.js, line 200

#### setNumSends()

Source:
  - src/main/js/daemon/model/MoneroPeer.js, line 209

#### setNumSupportFlags()

Source:
  - src/main/js/daemon/model/MoneroPeer.js, line 245

#### setPort()

Source:
  - src/main/js/daemon/model/MoneroPeer.js, line 50

#### setPruningSeed()

Source:
  - src/main/js/daemon/model/MoneroPeer.js, line 83

#### setReceiveIdleTime()

Source:
  - src/main/js/daemon/model/MoneroPeer.js, line 218

#### setRpcCreditsPerHash()

Source:
  - src/main/js/daemon/model/MoneroPeer.js, line 101

#### setRpcPort()

Source:
  - src/main/js/daemon/model/MoneroPeer.js, line 92

#### setSendIdleTime()

Source:
  - src/main/js/daemon/model/MoneroPeer.js, line 227

#### setState()

Source:
  - src/main/js/daemon/model/MoneroPeer.js, line 236

#### setType()

Source:
  - src/main/js/daemon/model/MoneroPeer.js, line 254

#### toJson()

Source:
  - src/main/js/daemon/model/MoneroPeer.js, line 13