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