@ethereumjs/devp2p / RLPx
• new RLPx(privateKey
, options
)
Name | Type |
---|---|
privateKey |
Uint8Array |
options |
RLPxOptions |
packages/devp2p/src/rlpx/rlpx.ts:55
• Readonly
clientId: Uint8Array
packages/devp2p/src/rlpx/rlpx.ts:40
• events: EventEmitter
packages/devp2p/src/rlpx/rlpx.ts:34
• Readonly
id: Uint8Array
packages/devp2p/src/rlpx/rlpx.ts:36
▸ _connectToPeer(peer
): void
Name | Type |
---|---|
peer |
PeerInfo |
void
packages/devp2p/src/rlpx/rlpx.ts:192
▸ _getOpenQueueSlots(): number
number
packages/devp2p/src/rlpx/rlpx.ts:188
▸ _getOpenSlots(): number
number
packages/devp2p/src/rlpx/rlpx.ts:184
▸ _isAlive(): boolean
boolean
packages/devp2p/src/rlpx/rlpx.ts:176
▸ _isAliveCheck(): void
void
packages/devp2p/src/rlpx/rlpx.ts:180
▸ _onConnect(socket
, peerId
): void
Name | Type |
---|---|
socket |
Socket |
peerId |
null | Uint8Array |
void
packages/devp2p/src/rlpx/rlpx.ts:201
▸ _refillConnections(): void
void
packages/devp2p/src/rlpx/rlpx.ts:286
▸ connect(peer
): Promise
<void
>
Name | Type |
---|---|
peer |
PeerInfo |
Promise
<void
>
packages/devp2p/src/rlpx/rlpx.ts:137
▸ destroy(…args
): void
Name | Type |
---|---|
...args |
any [] |
void
packages/devp2p/src/rlpx/rlpx.ts:125
▸ disconnect(id
): void
Name | Type |
---|---|
id |
Uint8Array |
void
packages/devp2p/src/rlpx/rlpx.ts:169
▸ getPeers(): (Socket
| Peer
)[]
(Socket
| Peer
)[]
packages/devp2p/src/rlpx/rlpx.ts:165
▸ listen(…args
): void
Name | Type |
---|---|
...args |
any [] |
void