Comments (3)
This protocol does not let you send directed messages to a specific client.
from nng.
Thank you.
I'm trying a way, register through nng_pipe_notify, apply a new context in the callback function, associate the pipe with the context, keep the context to communicate with the specific client in the future.
But the problem is, how to associate the pipe with the newly created context?
from nng.
Generally what you want to do isn't possible for ordinary applications. This kind of thing is the purview of protocol implementations -- you could see for example how REQ/REP do it, or how PAIRv1 does it.
The goal of Scalability Protocols is to solve these common kinds of problems for you, so that you don't have to do it yourself. Unfortunately, not everyone's scenario always fits, but a significant percentage of them do.
from nng.
Related Issues (20)
- Android gradle builds are failing while trying to use libnng.a HOT 1
- TLS test failures
- Define NNG_EXPIRE_THREADS not set in CMakeLists.txt HOT 3
- nng_aio_result return 0 but nng_aio_get_msg return NULL msg HOT 2
- Warning when building with NDEBUG HOT 3
- [Question] Server (rep) keep receiving same data HOT 1
- Throw NNG_EADDRINUSE but cannot find which process HOT 2
- nngcat server cannot support more than 1.2K nngcat clients HOT 9
- Limits (restrictions) for PUB/SUB protocol HOT 1
- How to specific tcp req local port number HOT 6
- NNG Socket Concept and Endpoints HOT 1
- NNG Architecture and Constraints HOT 1
- NNG Port to Other Languages HOT 3
- cmake find_package fails due to too restrictive permissions of /usr/local/lib64/cmake directory HOT 4
- NNG fails in child process created using fork() HOT 2
- Demo application will not link demo application under windows, with nng.lib built as static library HOT 2
- nng_dial for sub0 called synchronously is returning before the socket is ready to receive messages HOT 5
- Can NNG be used for LAN service discovery? HOT 3
- Q: Does nng has 'Too many open files' quesion? HOT 5
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 nng.