Interface ProtocolHandler
interface ProtocolHandler { generatePortID: ((localAddr: string,
p: Remote<ProtocolHandler>) => PromiseVow<string>); onBind: ((port: Remote<Port>,
localAddr: string,
p: Remote<ProtocolHandler>) => PromiseVow<void>); onConnect: ((port: Remote<Port>,
localAddr: string,
remote: string,
c: Remote<ConnectionHandler>,
p: Remote<ProtocolHandler>) => PromiseVow<AttemptDescription>); onCreate: ((protocol: Remote<ProtocolImpl>,
p: Remote<ProtocolHandler>) => PromiseVow<void>); onInstantiate: undefined | ((port: Remote<Port>,
localAddr: string,
remote: string,
p: Remote<ProtocolHandler>) => PromiseVow<string>); onListen: ((port: Remote<Port>,
localAddr: string,
listenHandler: Remote<ListenHandler>,
p: Remote<ProtocolHandler>) => PromiseVow<void>); onListenRemove: ((port: Remote<Port>,
localAddr: string,
listenHandler: Remote<ListenHandler>,
p: Remote<ProtocolHandler>) => PromiseVow<void>); onRevoke: ((port: Remote<Port>,
localAddr: string,
p: Remote<ProtocolHandler>) => PromiseVow<void>); } Properties
generatePortID
generatePortID: ((localAddr: string,
p: Remote<ProtocolHandler>) => PromiseVow<string>) onBind
onBind: ((port: Remote<Port>,
localAddr: string,
p: Remote<ProtocolHandler>) => PromiseVow<void>) onInstantiate
onInstantiate: undefined | ((port: Remote<Port>,
localAddr: string,
remote: string,
p: Remote<ProtocolHandler>) => PromiseVow<string>) onRevoke
onRevoke: ((port: Remote<Port>,
localAddr: string,
p: Remote<ProtocolHandler>) => PromiseVow<void>)
A handler for things the protocol implementation will invoke