Nim-LibP2P Copyright (c) 2019 Status Research & Development GmbH
- Licensed under either of
- Apache License, version 2.0, (LICENSE-APACHE)
- MIT license (LICENSE-MIT)
at your option. This file may not be copied, modified, or distributed except according to those terms.
Types
LPProtocol = ref object of RootObj codecs*: seq[string] handler*: LPProtoHandler ## this handler gets invoked by the protocol negotiator
- Source Edit
LPProtoHandler = proc (conn: Connection; proto: string): Future[void] {....gcsafe, raises: [Defect].}
- Source Edit
Procs
func codec(p: LPProtocol): string {....raises: [Defect], tags: [].}
- Source Edit
func codec=(p: LPProtocol; codec: string) {....raises: [Defect], tags: [].}
- Source Edit
Methods
method init(p: LPProtocol) {.base, ...gcsafe, raises: [Defect], tags: [].}
- Source Edit