An inbound connection attempt

interface InboundAttempt {
    accept: ((desc) => PromiseVow<Connection>);
    close: (() => PromiseVow<void>);
    getLocalAddress: (() => string);
    getRemoteAddress: (() => string);
}

Properties

accept: ((desc) => PromiseVow<Connection>)

Establish the connection

Type declaration

close: (() => PromiseVow<void>)

Abort the attempt

Type declaration

    • (): PromiseVow<void>
    • Returns PromiseVow<void>

getLocalAddress: (() => string)

Return the local address for this attempt

Type declaration

    • (): string
    • Returns string

getRemoteAddress: (() => string)

Return the remote address for this attempt

Type declaration

    • (): string
    • Returns string