@ethereumjs/devp2p / Server
• new Server(dpt
, privateKey
, options
)
Name | Type |
---|---|
dpt |
DPT |
privateKey |
Uint8Array |
options |
DPTServerOptions |
packages/devp2p/src/dpt/server.ts:35
• events: EventEmitter
packages/devp2p/src/dpt/server.ts:25
▸ _handler(msg
, rinfo
): void
Name | Type |
---|---|
msg |
Uint8Array |
rinfo |
RemoteInfo |
void
packages/devp2p/src/dpt/server.ts:139
▸ _isAliveCheck(): void
void
packages/devp2p/src/dpt/server.ts:120
▸ _send(peer
, typename
, data
): Uint8Array
Name | Type |
---|---|
peer |
PeerInfo |
typename |
string |
data |
any |
Uint8Array
packages/devp2p/src/dpt/server.ts:124
▸ bind(…args
): void
Name | Type |
---|---|
...args |
any [] |
void
packages/devp2p/src/dpt/server.ts:62
▸ destroy(…args
): void
Name | Type |
---|---|
...args |
any [] |
void
packages/devp2p/src/dpt/server.ts:69
▸ findneighbours(peer
, id
): void
Name | Type |
---|---|
peer |
PeerInfo |
id |
Uint8Array |
void
packages/devp2p/src/dpt/server.ts:115
▸ ping(peer
): Promise
<any
>
Name | Type |
---|---|
peer |
PeerInfo |
Promise
<any
>