Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for .NET 6 or 7 #12

Closed
MagnusMouritzen opened this issue Jan 4, 2023 · 0 comments
Closed

Support for .NET 6 or 7 #12

MagnusMouritzen opened this issue Jan 4, 2023 · 0 comments

Comments

@MagnusMouritzen
Copy link

Greetings
dotSpace does not seem to work on .NET 6 or 7, which are the officially supported versions. Specifically, networking does not work.
The example found here
https://github.com/pSpaces/dotSpace/wiki/RemoteSpace-Class
does not work (after fixing the unrelated FIFO and remotespace errors).
This example also does not work.
https://github.com/pSpaces/dotSpace-Examples/blob/master/Example5/Program.cs
I believe it also was the cause of this issue.
#11

I have tested the following code on .NET 6.0 and .NET 4.8. In the former case, an error occurs when getting the tuple from the client. The client fails with BAD_RESPONSE and the server fails with BAD_REQUEST.

using dotSpace.Objects.Space;
using dotSpace.Objects.Network;

class ServerProgram
{
    static void Main(string[] args)
    {
        var repository = new SpaceRepository();
        repository.AddGate("tcp://127.0.0.1:9001?CONN");
        repository.AddSpace("dtu", new SequentialSpace());
        repository.Put("dtu", "Hello world!");
        Console.Read();
    }
}
using dotSpace.Objects.Network;

class ClientProgram
{
    static void Main(string[] args)
    {
        var remotespace = new RemoteSpace("tcp://127.0.0.1:9001/dtu?CONN");
        var tuple = remotespace.Get(typeof(string));
        Console.WriteLine(tuple);
        Console.Read();
    }
}

If possible, it would be great to get a quick solution so the library can be used for projects this January.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant