Types
Connection = ref object of LPStream activity*: bool timeout*: Duration timerTaskFut: Future[void].Raising([]) timeoutHandler*: TimeoutHandler peerId*: PeerId observedAddr*: Opt[MultiAddress] protocol*: string transportDir*: Direction when defined(libp2p_agents_metrics): shortAgent*: string
- Source Edit
TimeoutHandler = proc (): Future[void] {.async: (...raises: []).}
- Source Edit
Consts
ConnectionTrackerName = "Connection"
- Source Edit
DefaultConnectionTimeout = (value: 300000000000)
- Source Edit
Procs
func hash(p: Connection): Hash {....raises: [], tags: [].}
- Source Edit
proc new(C: type Connection; peerId: PeerId; dir: Direction; observedAddr: Opt[MultiAddress]; timeout: Duration = DefaultConnectionTimeout; timeoutHandler: TimeoutHandler = nil): Connection {....raises: [].}
- Source Edit
func shortLog(conn: Connection): string {....raises: [], tags: [].}
- Source Edit
Methods
method closeImpl(s: Connection): InternalRaisesFuture[void, void] {. stackTrace: false, ...raises: [], gcsafe, raises: [], 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
-
InvalidVarintError, atEof, newLPStreamIncompleteError, writeLp, initStream, formatItIMPL, newLPStreamResetError, readVarint, LPStreamError, closeWithEOF, newLPStreamLimitError, join, LPStreamResetError, write, Eof, newLPStreamClosedError, LPStreamIncompleteError, close, LPStreamRemoteClosedError, readLp, LPStreamEOFError, LPStreamTrackerName, shortLog, LPStreamConnDownError, LPStreamLimitError, readOnce, toException, toException, LPStream, LPStreamClosedError, newLPStreamEOFError, StreamTracker, MaxSizeError, write, closeImpl, writeLp, newLPStreamRemoteClosedError, checkFutures, readLine, Direction, readExactly, newLPStreamConnDownError, closed, LPError, shortLog, UDP_DNS, ephemeral, MaPatternOp, <=, filterIt, shortLog, $, validate, hash, TLS_WS, TranscoderDNS, init, ephemeral, MAKind, getField, init, getRepeatedField, getBytes, len, &, peekSeq, fullAddrs, init, QUIC_V1_IP, withValue, getPublicKey, exceptionToAssert, new, DNSANY, DNSADDR, AddressMapper, WSS, init, toBytes, TCP_DNS, shortLog, encode, len, supported, ==, $, WSS_DNS, <, $, PeerInfo, TranscoderOnion, write, key, writeArray, PeerId, IP6, shortLog, payload, init, TCP, PrivateKey, getBytes, init, &=, init, $, getRawBytes, KeyPair, update, hash, contains, DNS4, isEmpty, data, HTTPS, QUIC_DNS, TranscoderIP6, encode, MaResult, DNS6, [], IpTransportProtocol, TranscoderPort, >=, payloadDomain, TranscoderOnion3, protoArgument, keyOpenArray, match, WebSockets_DNS, isEmpty, init, selectBest, Envelope, init, init, Reliable, addrs, init, getField, match, CryptoError, append, init, parseFullAddress, checkFutures, shuffle, init, validate, protoCode, TranscoderP2P, sign, getBytes, encode, len, TranscoderIP6Zone, shortLog, getBytes, QUIC_IP, protoArgument, getField, MultiAddress, readVarint, orError, MaInvalidAddress, writeVarint, items, getOrder, TranscoderUnix, SignedPeerRecord, DNS_OR_IP, init, decode, random, MaError, finish, decode, matchPartial, WS_DNS, initVBuffer, ==, ECDHEScheme, init, [], random, Secret, peekVarint, random, mapOr, bytes, maxInlineKeyLength, QUIC, withValue, mac, libp2p_pki_schemes, WS_IP, public, write, init, valueOr, init, HTTP, initVBuffer, TcpOnion3, write, toOpt, payloadType, $, IP, protoAddress, MaPattern, newRng, checkValid, WebSockets, CircuitRelay, extractPublicKey, mapAnd, maErr, UDP_IP, init, ==, init, write, QUIC_V1, TCP_IP, readSeq, capLen, protoName, toRawBytes, toException, match, writeLPVarint, CryptoResult, parseFullAddress, init, WebRTCDirect, init, UDP, decode, initVBuffer, PKScheme, random, init, write, init, write, PeerInfoError, compilesOr, TranscoderIP4, toException, DNS, goffset, >, init, high, toString, init, cmp, init, formatItIMPL, formatItIMPL, Signature, exclIfIt, toBytes, DigestSheme, IPFS, getField, hex, protocols, UNIX, LPError, init, init, toBytes, writeSeq, stretchKeys, ==, init, [], IP4, safeConvert, init, withValue, SignedPayload, toBytes, $, init, MAProtocol, readArray, P2PPattern, hasPublicKey, isEnough, hex, WS, encode, init, init, getField, iv, WSS_IP, peekArray, PeerRecord, SupportedSchemes, getField, Unreliable, SupportedSchemesInt, random, macOpenArray, mapEq, Onion3, concat, AddressInfo, init, write, EnvelopeError, MaPatResult, QUIC_V1_DNS, init, write, write, UTP, verify, init, PublicKey, WebSockets_IP, VBuffer, writePBVarint, ivOpenArray, RsaDefaultKeySize, write, toException, toException, checkFutures, LPError