Re: [xSocket-develop] Questions Regarding Multiplexer Clients
Status: Inactive
Brought to you by:
grro
|
From: Gregor R. <gre...@gm...> - 2010-03-03 18:18:30
|
Hi Carlo, xSocket is a tcp-level framework. xSocket does not know anything about messages. You can use xSocket to send data to the peer and receive data. xSocket does not define a framing or anything else. This means you have to mark you messages on application level. Gregor ----- Original Message ----- From: Carlo Camerino Sent: 03/01/10 07:16 PM To: xso...@li... Subject: [xSocket-develop] Questions Regarding Multiplexer Clients Hi, I would like to ask if this is possible, I am sending a message to an external tcp/ip server. I'm using one thread to send it and another thread is polling for the reply messages, Is there a possibility for me to be able to correlate the response based on a return message coming from the tcp/ip For example I send two messages Thread 1 Sending --> A010101TRANSACTION Thread 2 Sending --> B020202TRANSACTION-TWO Receiver Thread Getting --> A010101REPLY-TRANSACTION Receiver Thread Getting --> B020202REPLY-TRANSACTION-TWO How can I match this thread based on A010101 --> assuming this is the correlation id that i want to set. How can I make sure that Thread 1 will be the one getting it and not thread 2? I've seen a new pattern called Return Address? How can I implement it with TCP/IP. Does the other end have to be a multiplexer server as well? Thanks Carlo |