Types
libp2p_failed_upgrade = IgnoredCollector
- Source Edit
Upgrade = ref object of RootObj ms*: MultistreamSelect identity*: Identify connManager*: ConnManager secureManagers*: seq[Secure]
- Source Edit
UpgradeFailedError = object of LPError
- Source Edit
Procs
proc identify(self: Upgrade; conn: Connection): Future[void] {....gcsafe, stackTrace: false, ...gcsafe, raises: [Defect], raises: [Defect], tags: [RootEffect].}
- identify the connection Source Edit
proc secure(self: Upgrade; conn: Connection): Future[Connection] {....gcsafe, stackTrace: false, ...gcsafe, raises: [Defect], raises: [Defect], tags: [RootEffect].}
- Source Edit
Methods
method upgradeIncoming(self: Upgrade; conn: Connection): Future[void] {.base, ...raises: [Defect], tags: [].}
- Source Edit
method upgradeOutgoing(self: Upgrade; conn: Connection): Future[Connection] {. base, ...raises: [Defect], tags: [].}
- Source Edit
Exports
-
newLPStreamWriteError, getProtoHeader, ProtoHeader, shortLog, init, random, $, MaError, ephemeral, MaPatternOp, HTTP, initVBuffer, getProtoHeader, MaxSizeError, ==, decodeProposal, getLen, ECDHEScheme, shortLog, init, closed, finish, [], shcopy, shuffle, random, init, Secret, peekVarint, random, $, validate, mapOr, maxInlineKeyLength, TranscoderDNS, QUIC, key, getRequiredField, getField, libp2p_pki_schemes, write, public, MAKind, write, write, decode, init, getField, checkFieldNumber, getRepeatedField, matchPartial, getBytes, len, ==, init, readLp, initVBuffer, VBuffer, atEof, LPStreamTrackerName, peekSeq, payloadType, <=, LPStreamError, init, IP, protoAddress, newRng, DefaultConnectionTimeout, checkValid, getPublicKey, WebSockets, CircuitRelay, extractPublicKey, mapAnd, new, hash, newLPStreamEOFError, init, ==, DNSADDR, hash, write, WSS, LPStream, verify, writePacked, isUpgraded, init, closeImpl, readSeq, toBytes, shortLog, encode, TranscoderIP4, protoName, ==, toRawBytes, TranscoderIP6Zone, $, initProtoBuffer, newLPStreamReadError, init, match, writeLPVarint, CryptoResult, ProtoResult, WebRTCDirect, DNSANY, UDP, PeerInfo, TranscoderOnion, StreamTracker, write, init, isEmpty, writeArray, writeLp, LPStreamIncompleteError, [], LPStreamEOFError, IP6, shortLog, initVBuffer, decode, ProtoFlags, PKScheme, finish, payload, stretchKeys, Connection, write, TCP, PrivateKey, getBytes, write, init, &=, PeerInfoError, newLPStreamClosedError, close, $, initProtoBuffer, toException, DNS, init, readVarint, upgrade, goffset, >, KeyPair, init, high, toString, cmp, init, SupportedWireTypes, formatItIMPL, formatItIMPL, formatItIMPL, Signature, hash, formatItIMPL, toBytes, DigestSheme, IPFS, getField, readOnce, init, init, isEmpty, MultiAddress, ProtoScalar, shortLog, LPStreamIncorrectDefect, hex, protocols, init, HTTPS, tryAndWarn, LPError, getPtr, write, sign, encode, supported, MaResult, init, ProtoField, toBytes, writeSeq, init, &, DNS6, IpTransportProtocol, toOpenArray, init, allFuturesThrowing, IP4, TranscoderPort, isEnough, getBytes, createExchange, >=, init, payloadDomain, update, $, MaPattern, init, LPStreamLimitError, SignedPayload, TimeoutHandler, toBytes, newLPStreamLimitError, newLPStreamIncorrectDefect, mac, keyOpenArray, match, decode, $, isEmpty, LPStreamReadError, getRequiredRepeatedField, init, newLPStreamIncompleteError, newLPStreamReadError, initProtoBuffer, MAProtocol, getPackedRepeatedField, initStream, contains, readVarint, shortLog, DNS4, readArray, selectBest, write, P2PPattern, Envelope, hasPublicKey, toException, init, isEnough, init, Reliable, hex, ProtoBuffer, closeImpl, write, WS, init, encode, init, init, init, getField, match, getField, <, iv, onUpgrade, MaxMessageSize, readLine, Eof, CryptoError, getField, append, vsizeof, peekArray, UNIX, PeerRecord, init, SupportedSchemes, getRepeatedField, LPStreamWriteError, getField, Unreliable, SupportedSchemesInt, random, checkFutures, macOpenArray, validate, protoCode, mapEq, getField, concat, TranscoderP2P, AddressInfo, ConnectionTrackerName, TranscoderIP6, new, init, write, EnvelopeError, encode, len, PeerId, createProposal, MaPatResult, Direction, InvalidVarintError, shortLog, init, write, getBytes, write, init, UTP, init, PublicKey, writeLp, getRawBytes, writePBVarint, ProtoFieldKind, readExactly, protoArgument, getRepeatedField, ProtoError, init, initStream, getField, ephemeral, ivOpenArray, closeWithEOF, orError, decodeExchange, getField, MaInvalidAddress, LPStreamClosedError, RsaDefaultKeySize, writeVarint, items, write, getOrder, TranscoderUnix, SignedPeerRecord, join, identify, expandItIMPL, new, IdentifyNoPubKeyError, init, IdentifyPush, AgentVersion, IdentityInvalidMsgError, IdentifyCodec, IdentifyPushHandler, new, IdentifyPushCodec, Identify, init, IdentityNoMatchError, ProtoVersion, push, decodeMsg, IdentifyInfo, IdentifyError, formatItIMPL, codec, handshake, init, Secure, init, readMessage, shortLog, new, secure, LPProtoHandler, LPProtocol, codec=, SecureConnTrackerName, initStream, closeImpl, readOnce, SecureConn, addHandler, MsgSize, handle, MultiStreamError, Ls, Codec, addHandler, MultistreamSelect, new, HandlerHolder, list, addHandler, select, select, Matcher, MSCodec, select, Na