possible to have one way requests without responses?

2 views
Skip to first unread message

Jimmy Reza

unread,
Aug 1, 2008, 6:55:02 PM8/1/08
to BLIP Protocol
 
 
hiya
was wondering if I could send one way messages that do not require a response?
 
thanks
jimmy

Gus Mueller

unread,
Aug 1, 2008, 8:05:01 PM8/1/08
to BLIP Protocol
On Aug 1, 2008, at 3:55 PM, Jimmy Reza wrote:

> was wondering if I could send one way messages that do not require a
> response?


Just don't do anything with the response when you send it- ignoring it
seems to work ok.

-gus

--

August 'Gus' Mueller
Flying Meat Inc.
http://flyingmeat.com/

Jimmy Reza

unread,
Aug 1, 2008, 8:22:18 PM8/1/08
to Gus Mueller, BLIP Protocol
 
did you ever get into a situation with an exception when u sent a request..
but then the other service went down in the middle and get an exception when receiving a response?
 
jmmy

Jens Alfke

unread,
Aug 1, 2008, 9:06:09 PM8/1/08
to Jimmy Reza, BLIP Protocol

On 1 Aug '08, at 3:55 PM, Jimmy Reza wrote:

> was wondering if I could send one way messages that do not require a
> response?

Use the BLIPRequest.noReply property:

/** Does this request not need a response?
This property can only be set before sending the request. */
@property BOOL noReply;

—Jens

Jens Alfke

unread,
Aug 1, 2008, 11:40:26 PM8/1/08
to Gus Mueller, BLIP Protocol

On 1 Aug '08, at 5:05 PM, Gus Mueller wrote:

> Just don't do anything with the response when you send it- ignoring it
> seems to work ok.

That'll work, but it incurs the overhead of having an empty response
sent back. Which isn't much, but it's still better to use the noReply
mode when that's your intent.

—Jens

Reply all
Reply to author
Forward
0 new messages