@ethereumjs/devp2p / LES
Protocol
↳ LES
• new LES(version
, peer
, send
)
Name | Type |
---|---|
version |
number |
peer |
Peer |
send |
SendMethod |
Protocol.constructor
packages/devp2p/src/protocol/les.ts:27
▪ Static
les2: Object
Name | Type |
---|---|
constructor |
typeof LES |
length |
number |
name |
string |
version |
number |
packages/devp2p/src/protocol/les.ts:35
▪ Static
les3: Object
Name | Type |
---|---|
constructor |
typeof LES |
length |
number |
name |
string |
version |
number |
packages/devp2p/src/protocol/les.ts:36
▪ Static
les4: Object
Name | Type |
---|---|
constructor |
typeof LES |
length |
number |
name |
string |
version |
number |
packages/devp2p/src/protocol/les.ts:37
▸ _getStatusString(status
): string
Name | Type |
---|---|
status |
Status |
string
packages/devp2p/src/protocol/les.ts:149
▸ _handleMessage(code
, data
): void
Name | Type |
---|---|
code |
MESSAGE_CODES |
data |
Uint8Array |
void
Protocol._handleMessage
packages/devp2p/src/protocol/les.ts:39
▸ _handleStatus(): void
void
packages/devp2p/src/protocol/les.ts:114
▸ getMsgPrefix(msgCode
): string
Name | Type |
---|---|
msgCode |
MESSAGE_CODES |
string
packages/devp2p/src/protocol/les.ts:275
▸ getVersion(): number
number
packages/devp2p/src/protocol/les.ts:145
▸ sendMessage(code
, payload
): void
Name | Type | Description |
---|---|---|
code |
MESSAGE_CODES |
Message code |
payload |
Input |
Payload (including reqId, e.g. [1, [437000, 1, 0, 0]] ) |
void
packages/devp2p/src/protocol/les.ts:217
▸ sendStatus(status
): void
Name | Type |
---|---|
status |
Status |
void