An inbound connection attempt

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

Properties

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

Establish the connection

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

Abort the attempt

getLocalAddress: (() => string)

Return the local address for this attempt

getRemoteAddress: (() => string)

Return the remote address for this attempt