Comments (2)
I have a walk around:
AsyncIO.ForceDotNet.Force();
and
protected override void Dispose(bool disposing)
{
base.Dispose(disposing);
NetMQConfig.Cleanup(false);
}
are the solution.
Working example:
using Godot;
using NetMQ;
using NetMQ.Sockets;
namespace RPG
{
public class Main : Node2D
{
private ResponseSocket _server = null!;
private RequestSocket _client = null!;
public override void _Ready()
{
AsyncIO.ForceDotNet.Force();
_server = new ResponseSocket("@tcp://localhost:5556");
_client = new RequestSocket(">tcp://localhost:5556");
_client.SendFrame("assss");
GD.Print(_server.ReceiveFrameString());
}
public override void _Process(float delta)
{
}
public override void _Input(InputEvent @event)
{
if (@event.IsActionPressed("quit"))
{
GetTree().Quit();
}
}
protected override void Dispose(bool disposing)
{
base.Dispose(disposing);
NetMQConfig.Cleanup(false);
}
}
}
from asyncio.
I will try this, thank you @KrunoSaho
from asyncio.
Related Issues (20)
- Assembly for released version 1.26.0 is marked as 1.25.0 HOT 2
- AccessViolationException in AsyncIO HOT 24
- Build problems HOT 2
- How to disconnect the client or server? HOT 8
- Concurrent Send Operations Result in SocketError 996 HOT 33
- Possible memory leak? HOT 1
- How to set a Send timeout? HOT 1
- Is it meaningful to build an async UDP socket?
- Assembly for released version 0.1.40 is marked as 0.0.0 HOT 9
- Assembly for NuGet package 0.1.60 has file version 0.1.42 HOT 1
- Could it be a potential issue of AsyncSocket? HOT 11
- Extract m_acceptSocket and related fields from AsyncSocket HOT 4
- New nuget release HOT 3
- Source Code for 0.1.69.0 produces AsyncIO.dll 0.1.42.0 HOT 3
- AsyncIO may have a memory leak problem HOT 9
- AccessViolationException: Attempted to read or write protected memory HOT 2
- GetQueuedCompletionStatusEx does not return HOT 3
- PlatformNotSupportedException on Linux HOT 2
- Exception when connecting UDP sockets HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from asyncio.