Comments (3)
I think I do misunderstood something. libstrophe does allow me to build multiple connections. Sorry for my bother.
from libstrophe.
libstrophe is not thread-safe. There may be problems when you create connections from different threads at the same time. Or when you call xmpp_send in one thread and xmpp_run/xmpp_run_once in another one. Thread-safety should be provided by program that uses libstophe.
But you can create different contexts for every thread and use each context in respective thread only. In this case it will be safe (as far as I know).
PS There is a mailing list https://groups.google.com/forum/#!forum/libstrophe
from libstrophe.
Thanks so much for your suggestions. Will be careful about that. :-)
On Fri, Sep 27, 2013 at 3:06 PM, Dmitry Podgorny
[email protected]:
libstrophe is not thread-safe. There may be problems when you create
connections from different threads at the same time. Or when you call
xmpp_send in one thread and xmpp_run/xmpp_run_once in another one.
Thread-safety should be provided by program that uses libstophe.But you can create different contexts for every thread and use each
context in respective thread only. In this case it will be safe (as far as
I know).PS There is a mailing list
https://groups.google.com/forum/#!forum/libstrophe—
Reply to this email directly or view it on GitHubhttps://github.com//issues/10#issuecomment-25226691
.
Van Hu
Go Developer at The Plant
from libstrophe.
Related Issues (20)
- Tests fail without static libraries HOT 4
- Double free in gnutls library HOT 6
- `undefined reference` errors during example compilation: what am I missing? HOT 9
- Is it possible to build libstrophe for iOS? HOT 2
- cannot connect when vpn active HOT 2
- memory leak at xmpp_alloc HOT 2
- library API's exported but missing from header HOT 2
- SO versioning not done correctly HOT 3
- How to use in visual studio? HOT 7
- Sending a message to a user HOT 21
- Feature Request - expose _escape_xml to public (via fmt) HOT 1
- XEP 0178 PEM password prompt despite no password on the p12 encrypted certificate
- Continuous Bosh Request HOT 2
- Resending of old messages on reconnect HOT 7
- Not working with multiple FQDNs in DNS response HOT 6
- specify the network interface from which the xmpp traffic will be sent HOT 1
- Issue with Stream Management resumption HOT 3
- tls-server-end-point support
- STARTTLS with client and server authentication HOT 2
- CI for BSDs
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 libstrophe.