messaging

SMS cannot be prevented using abortBroadcast()?

≯℡__Kan透↙ 提交于 2019-12-05 10:49:47
I am working on a sms blocker application, in which i am using broadcast receiver and abortBroadcast() method - as many ppl have suggested here - to prevent messages from reaching inbox and alerting the user. But in my case, when I send a sms using the emulator, the SMS message won't get blocked, and reaches the inbox, also I get an error : 06-29 09:19:05.854: E/BroadcastReceiver(868): BroadcastReceiver trying to return result during a non-ordered broadcast which doesn't terminate the app in the emulator, however the application gets terminated when I test it on my phone. And yes, I have set

server push for millions of concurrent connections

假如想象 提交于 2019-12-05 09:30:49
I am building a distributed system that consists of potentially millions of clients which all need to keep an open (preferrably HTTP) connection to wait for a command from the server (which is running somewhere else). The load of messages / commmands will not be very high, maybe one message / sec / 1000 clients which means it would be 1000 msg/sec @ 1 million clients. => it's basically about the concurrent connections. The requirements are simple too. One way messaging (server->client), only 1 client per "channel". I am pretty open in terms of technology (xmpp / websockets / comet / ...). I am

Moving messages between queues rabbitMQ

微笑、不失礼 提交于 2019-12-05 08:02:44
I am looking to be able to move messages between queues (manually) in Rabbit. For example: first-queue has messages ['a','b','c','d','e','f'] second-queue has messages ['x','y'] I want to be able to move for example message 'a' to second-queue from first-queue. This can be a manual operation. Both queues are on the same broker, and I do not want to send them through any exchange. Is there anyway to do this? I have been playing with rabbitmqctl but can't seem to get it to work. I am open to any other tools that would allow me to accomplish this. Eventually I am hoping to have some sort of

Rules of thumb regarding Messaging / Message Queueing [closed]

大憨熊 提交于 2019-12-05 06:57:52
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 4 years ago . Can someone provide some rules of thumb regarding when to use Message Queueing and what practical real-world problems they are supposed to address? Thanks 回答1: Asynchronous messaging allows systems to communicate in a disconnected manner. It is not necessary for both systems to be

How Can I Send Message To specific User with signalR

谁都会走 提交于 2019-12-05 06:39:37
I have some problem with signalR, I can not send message to specific User From Hub. I want to do like this: public void Send(string userToId, string userForId, string message) { IHubContext context = GlobalHost.ConnectionManager.GetHubContext<ChatHubs>(); //userForId - it is Session["UserId"] context.Clients.User(userForId).updateMessages(message); } I have already read this topic: http://www.asp.net/signalr/overview/guide-to-the-api/mapping-users-to-connections , but It's not clear for me, because I have not this var name = Context.User.Identity.Name; I have User information in Session

Send an object using RabbitMQ

不羁的心 提交于 2019-12-05 05:37:22
I Understand that this question duplicates question at using rabbitmq to send a message not string but struct if to do this using the first way first way I have the following trace: java.io.EOFException at java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2304) at java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInputStream.java:2773) at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:798) at java.io.ObjectInputStream.<init>(ObjectInputStream.java:298) at com.mdnaRabbit.worker.data.Data.fromBytes(Data.java:78) at com.mdnaRabbit.worker

Is there a way to use GCM in Android without a dedicated server?

老子叫甜甜 提交于 2019-12-05 04:48:49
I am conceptualizing an Android app that sends data from one device to another (like a picture message), but because I do not have a server, I am looking into other ways of messaging. Google Cloud Messaging (GCM) seems like a good choice, since its made for Android, and is free to use, but it still requires a server to use. Is there a way around this requirement- such as running the GCM server on the app itself? Or is there a better approach to serverless messaging on Android? I think that will be hard to do what you want effectively without a server but you can check out Parse's SDK. It is

Spring configuration for multiple destinations and consumers

醉酒当歌 提交于 2019-12-05 02:52:50
问题 I'm using a message listener container with one destination and one Consumer (message listener): <bean id="msgListenerContainer" class="org.springframework.jms.listener.DefaultMessageListenerContainer" p:connectionFactory-ref="connectionFactory" p:destination-ref="destination" p:messageListener-ref="messageHandler" p:concurrentConsumers="10" p:maxConcurrentConsumers="50" p:receiveTimeout="5000" p:idleTaskExecutionLimit="10" p:idleConsumerLimit="5" /> If i want multiple destinations and for

Private messages with Faye and Rails

可紊 提交于 2019-12-05 02:06:43
问题 I'm using the faye gem menitioned in the railscast allowing apps to push messages. Problem is it pushes messages to all chat clients that are open. I need them to be private. It's possible to get private messaging with faye but it's url based. For example all messages will be sent to site.com/foo . But, in my model the chat doesn't have a specific url. Because chat is just a collection of messages sent to you by that user. So if you're logged in as adam site.com/messages/eve would allow you

C++: How to build an events / messaging system without void pointers?

断了今生、忘了曾经 提交于 2019-12-05 00:30:29
问题 I'd like to have a dynamic messaging system in my C++ project, one where there is a fixed list of existing events, events can be triggered anywhere during runtime, and where you can subscribe callback functions to certain events. There should be an option for arguments passed around in those events. For example, one event might not need any arguments (EVENT_EXIT) , and some may need multiple ones (EVENT_PLAYER_CHAT: Player object pointer, String with message) The first option for making this