Coder Social home page Coder Social logo

Comments (3)

metadings avatar metadings commented on June 11, 2024

Well you are doing all right, but found me updating the ZeroMQ.VS.csproj and ZeroMQ.mono.csproj...

Please try again by downloading the ZIP or git pull origin master...!

I renamed ZMonitorSocketExtensions.cs to ZMonitors.cs and I was also adding a static class Z85 (in the Z85.cs), which shall implement the zmq_z85_encode and zmq_z85_decode functions...

from clrzmq4.

chuckmoore55 avatar chuckmoore55 commented on June 11, 2024

Metadings -- It built with no problems. Thanks for the quick response!

Chuck

from clrzmq4.

metadings avatar metadings commented on June 11, 2024

One of the most astonishing samples of code are, that I have

    public string Endpoint { get; protected set; }

    public ZContext Context { get; protected set; }

    protected ZSocket Backend { get; set; }

    protected ZAction Action { get; set; }

    protected object[] Arguments { get; set; }

    public ZSocket Frontend { get; protected set; }


    public delegate void ZAction(ZContext context, ZSocket backend, CancellationTokenSource cancellor, object[] args);

With a new socket Backend, bound to an Endpoint (random), I am calling the delegate ZAction...!

    protected override void Run()
    {
        using (Backend = ZSocket.Create(Context, ZSocketType.PAIR))
        {
            Backend.Bind(Endpoint);

            Action(Context, Backend, Cancellor, Arguments);
        }
    }

Because the Start method also runs the Frontend, I can now listen on the messages:

    public override void Start()
    {
        base.Start();
        if (Frontend == null)
        {
            Frontend = ZSocket.Create(Context, ZSocketType.PAIR);
            Frontend.Connect(Endpoint);
        }
    }

from clrzmq4.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.