Types
Connection = ref object of LPStream activity*: bool timeout*: Duration timerTaskFut: Future[void] timeoutHandler*: TimeoutHandler peerId*: PeerId observedAddr*: MultiAddress upgraded*: Future[void] protocol*: string transportDir*: Direction when defined(libp2p_agents_metrics): shortAgent*: string
- Source Edit
TimeoutHandler = proc (): Future[void] {....gcsafe, raises: [Defect].}
- Source Edit
Consts
ConnectionTrackerName = "Connection"
- Source Edit
DefaultConnectionTimeout = (value: 300000000000)
- Source Edit
Procs
func hash(p: Connection): Hash {....raises: [], tags: [].}
- Source Edit
proc isUpgraded(s: Connection): bool {....raises: [], tags: [].}
- Source Edit
proc new(C: type Connection; peerId: PeerId; dir: Direction; timeout: Duration = DefaultConnectionTimeout; timeoutHandler: TimeoutHandler = nil; observedAddr: MultiAddress = MultiAddress()): Connection {....raises: [].}
- Source Edit
proc onUpgrade(s: Connection): Future[void] {.stackTrace: false, ...gcsafe, raises: [], raises: [], tags: [RootEffect].}
- Source Edit
func shortLog(conn: Connection): string {....raises: [], tags: [].}
- Source Edit
proc upgrade(s: Connection; failed: ref CatchableError = nil) {....raises: [], tags: [].}
- Source Edit
Methods
method closeImpl(s: Connection): Future[void] {....raises: [], tags: [RootEffect].}
- Source Edit
method getWrapped(s: Connection): Connection {.base, ...raises: [], tags: [].}
- Source Edit
method initStream(s: Connection) {....raises: [], tags: [TimeEffect, RootEffect].}
- Source Edit
Templates
template formatItIMPL(it: Connection): auto
- Source Edit
Exports
-
allFuturesThrowing, formatItIMPL, newLPStreamWriteError, newLPStreamIncorrectDefect, writeLp, newLPStreamReadError, InvalidVarintError, newLPStreamEOFError, LPStreamTrackerName, LPStreamError, closeWithEOF, newLPStreamLimitError, join, shortLog, initStream, Eof, newLPStreamClosedError, atEof, LPStreamIncompleteError, close, readLp, readVarint, LPStreamEOFError, newLPStreamReadError, newLPStreamIncompleteError, LPStreamLimitError, readOnce, toException, toException, LPStream, LPStreamClosedError, LPStreamWriteError, StreamTracker, MaxSizeError, write, LPStreamIncorrectDefect, closeImpl, write, writeLp, LPStreamReadError, checkFutures, readLine, Direction, readExactly, tryAndWarn, closed, LPError, ProtoHeader, shortLog, ephemeral, MaPatternOp, ==, <=, shortLog, $, validate, init, TranscoderDNS, init, ephemeral, getField, MAKind, getField, checkFieldNumber, init, getRepeatedField, getBytes, len, &, peekSeq, getProtoHeader, init, getPublicKey, new, DNSANY, DNSADDR, WSS, init, toBytes, shortLog, encode, len, supported, init, ==, $, <, $, PeerInfo, TranscoderOnion, write, key, writeArray, IP6, shortLog, payload, stretchKeys, TCP, PrivateKey, getBytes, init, &=, $, getRawBytes, KeyPair, update, SupportedWireTypes, hash, init, DNS4, isEmpty, ProtoScalar, HTTPS, tryAndWarn, TranscoderIP6, encode, MaResult, DNS6, [], IpTransportProtocol, toOpenArray, allFuturesThrowing, TranscoderPort, isEnough, write, >=, payloadDomain, $, init, TranscoderOnion3, write, keyOpenArray, match, isEmpty, getRequiredRepeatedField, initProtoBuffer, getField, MultiAddress, selectBest, getPtr, Envelope, init, Reliable, ProtoBuffer, init, getField, match, getField, CryptoError, append, vsizeof, init, init, getRepeatedField, checkFutures, shuffle, init, validate, protoCode, getField, TranscoderP2P, sign, getBytes, encode, len, TranscoderIP6Zone, shortLog, getBytes, hash, ProtoFieldKind, protoArgument, finish, orError, decodeExchange, MaInvalidAddress, items, getOrder, [], TranscoderUnix, SignedPeerRecord, writeVarint, getProtoHeader, init, decode, random, MaError, decode, decode, matchPartial, HTTP, initVBuffer, ==, getLen, ECDHEScheme, init, shcopy, random, Secret, peekVarint, mapOr, init, maxInlineKeyLength, QUIC, getRequiredField, mac, public, write, init, libp2p_pki_schemes, init, initVBuffer, write, payloadType, decodeProposal, $, IP, protoAddress, newRng, checkValid, WebSockets, CircuitRelay, extractPublicKey, mapAnd, init, init, write, PeerId, writePacked, readSeq, TranscoderIP4, protoName, toRawBytes, MaPattern, initProtoBuffer, toException, match, writeLPVarint, CryptoResult, ProtoResult, WebRTCDirect, init, UDP, init, isEmpty, initVBuffer, ProtoFlags, PKScheme, random, write, init, write, PeerInfoError, initProtoBuffer, toException, DNS, init, goffset, >, high, toString, cmp, init, formatItIMPL, formatItIMPL, Signature, toBytes, DigestSheme, IPFS, getField, hex, protocols, init, UNIX, init, ProtoField, toBytes, writeSeq, ==, init, [], IP4, init, createExchange, SignedPayload, toBytes, init, MAProtocol, getPackedRepeatedField, contains, readArray, P2PPattern, hasPublicKey, isEnough, hex, write, WS, init, encode, init, readVarint, iv, RsaDefaultKeySize, getField, peekArray, PeerRecord, SupportedSchemes, getField, Unreliable, SupportedSchemesInt, random, LPError, macOpenArray, mapEq, concat, AddressInfo, write, EnvelopeError, createProposal, MaPatResult, init, write, write, UTP, finish, verify, init, PublicKey, VBuffer, writePBVarint, getRepeatedField, ProtoError, ivOpenArray, MaxMessageSize, getField, write, toException, toException, allFuturesThrowing, tryAndWarn, checkFutures, LPError