Skip to content

v1.4.0-rc0

Latest
Compare
Choose a tag to compare
@jeikabu jeikabu released this 10 Feb 09:09
· 1 commit to master since this release

As features have been added to this library the naming convention has changed and there have been a few mistakes along the way:

  • There's little indication which classes are low-level wrappers around NNG types (like AsyncCtx) and which are high-level C# implementations (like AsyncContext)
  • Some low-level wrappers match NNG naming and some don't; Message vs nng_msg
  • Some interfaces match implementations and some don't; Dialer/IDialer vs Alloc/IMemory

Changes

  • [email protected]
  • Retiring Subor.nng.NETCore package, all further releases will be as nng.NET
  • Breaking changes:
    • fix #88 Enforce various *AsyncContext wrappers use correct sockets
      • *AsyncContext.Create() methods take ISocket when they should accept more specific (e.g. ISendSocket)
    • Renamed classes:
      • AsyncIO => NngAio
      • AsyncCtx => NngCtx
      • Alloc/IMemory => NngAlloc/INngAlloc
      • Dialer/IDialer => NngDialer/INngDialer
      • Listener/IListener => NngListener/INngListener
      • Message/IMessage/NngMessageHeader/IMessagePart => NngMsg/INngMsg/NngMsgHeader/INngMsgPart
      • Socket/ISocket => NngSocket/INngSocket
      • Pipe/IPipe => NngPipe/INngPipe
      • IStat => INngStat
    • Renamed properties:
      • Various properties providing access to nng_* structs are now all NativeNngStruct
    • Message Dup() returns NngResult rather than throwing an NngException on failure
  • Removed obsoleted code:
    • .Net Framework support; only .NET Core and .NET 5 are supported
    • ICtx; instead of downcasting to ICtx use IHasCtx.Ctx
    • Factory Pair0Open and Pair1Open; use PairOpen
    • NNG library binaries built with -DNNG_ELIDE_DEPRECATED=ON to remove old getopt/setopt functions