<div>Ben, Socket server is just relaying data back and forth. It's essential to use socket server, because of the way entire application is set up. My iPhone app has chat inside in addition to couple of other photo sharing features. The idea is to use RabbitMq for iPhone chat app to send/receive messages. </div>
<div> </div>
<div>Because the socket server accepts only binary data, I am not sure how do I send/receive messages to RabbitMQ server. Without socket server in the picture, it works like a charm, iPhone can send message to RabbitMQ and receive the responses. But, due to the constraints I have, the message has to go thru socket server. </div>
<div> </div>
<div>another possible problem is that iPhone app has to keep on checking RabbitMQ for any messages available. This will be a real problem, if I port iPhone app into a mobile app because of bandwidth it's going to consume. </div>
<div> </div>
<div>Thank you.<br></div>
<div class="gmail_quote">On Thu, Sep 10, 2009 at 11:38 PM, Ben Hood <span dir="ltr"><<a href="mailto:0x6e6562@gmail.com">0x6e6562@gmail.com</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">Alex,
<div class="im"><br><br>On 10 Sep 2009, at 20:52, Alex Gentle <<a href="mailto:alexgentle@sify.com" target="_blank">alexgentle@sify.com</a>> wrote:<br><br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">I have the following situation. I am thinking of using RabbitMQ for chat inside my iPhone application. iPhone application is connected to the server thru socket server. The socket server passes the information from iPhone to the server and vice versa. I am not sure how could I make this communication path works – iPhone -> Socket Server -> RabbitMQ server. I understand that I can connect the client directly to RabbitMQ server using client library you provided. I am not sure how could I pass the message thru socket server. Socket server basically accepts the incoming message from iPhone and route the message to appropriate server based on header information in the incoming message. It does the same thing when a server wants to communicate to the client thru socket server. Socket server accepts only binary data. Is it a overkill to use RabbitMQ for this purpose? If I use XMPP like ejabbberd, I would still have the same issue of routing the message thru socket server. Any help is much appreciated. Thanks!<br>
</blockquote><br><br></div>I don't understand your intention. What problem are you actually trying to solve? Are you trying to write an iPhone app that can send and receive messages to and from RabbitMQ? I don't understand what this socket server is doing apart from relaying data to either Rabbit or ejabberd.<br>
<font color="#888888"><br>Ben</font></blockquote></div><br>