libp2p/muxers/mplex/coder

    Dark Mode
Search:
Group by:
  Source   Edit

Types

MessageType {.pure.} = enum
  New, MsgIn, MsgOut, CloseIn, CloseOut, ResetIn, ResetOut
  Source   Edit
Msg = tuple[id: uint64, msgType: MessageType, data: seq[byte]]
  Source   Edit

Consts

MaxMsgSize = 1048576
  Source   Edit

Procs

proc newInvalidMplexMsgType(): ref InvalidMplexMsgType {....raises: [], tags: [].}
  Source   Edit
proc readMsg(conn: Connection): Future[Msg] {.stackTrace: false, ...raises: [],
    gcsafe, raises: [], raises: [], tags: [RootEffect].}
  Source   Edit
proc writeMsg(conn: Connection; id: uint64; msgType: MessageType;
              data: seq[byte] = @[]): Future[void] {....raises: [], tags: [].}
  Source   Edit
proc writeMsg(conn: Connection; id: uint64; msgType: MessageType; data: string): Future[
    void] {....raises: [], tags: [].}
  Source   Edit