API documentation of Agoric SDK / Exports / @agoric/network / types / InboundAttempt
Interface: InboundAttempt
@agoric/network.types.InboundAttempt
An inbound connection attempt
Table of contents
Properties
Properties
accept
• accept: (desc
: AttemptDescription
) => PromiseVow
<Connection
>
Establish the connection
Type declaration
▸ (desc
): PromiseVow
<Connection
>
Parameters
Name | Type |
---|---|
desc | AttemptDescription |
Returns
Defined in
packages/network/src/types.js:176
close
• close: () => PromiseVow
<void
>
Abort the attempt
Type declaration
▸ (): PromiseVow
<void
>
Returns
PromiseVow
<void
>
Defined in
packages/network/src/types.js:182
getLocalAddress
• getLocalAddress: () => string
Return the local address for this attempt
Type declaration
▸ (): string
Returns
string
Defined in
packages/network/src/types.js:178
getRemoteAddress
• getRemoteAddress: () => string
Return the remote address for this attempt
Type declaration
▸ (): string
Returns
string