Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #16 (permalink)  
Old 10-02-2004
dragzhb dragzhb is offline
Registered User
 
 
Join Date: Jul 2004
Posts: 63
Send a message via Yahoo to dragzhb
-->
HI marc:

I have tested that oneway method almost 80% quickly than twoway, could you add oneway option in AMI and AMD in furture? beacuse with TCP/IP, It has high reliable transfer. I think we would need more and more speed in many place(eg. in telecom), not only stable
Reply With Quote
  #17 (permalink)  
Old 10-02-2004
marc's Avatar
marc marc is offline
ZeroC Staff
 
Name: Marc Laukien
Organization: ZeroC, Inc.
Project: The Internet Communications Engine
 
Join Date: Feb 2003
Location: Florida
Posts: 1,781
Oneway is faster than twoway, because no response is being sent, meaning that the client just pushes the data on the TCP/IP stack, and then moves on to other things without waiting for the server to respond.

AMI is defined as having the response from the server delivered asynchonously (in a callback). Since in the case of oneways there is no response, there is also no point in sending a oneway call with AMI.

For AMD calls, you can receive oneway calls and twoway calls, it doesn't matter to the AMD server implementation.
Reply With Quote
  #18 (permalink)  
Old 10-03-2004
dragzhb dragzhb is offline
Registered User
 
 
Join Date: Jul 2004
Posts: 63
Send a message via Yahoo to dragzhb
-->
HI marc:
Thanks for your response, but I have another question of AMI .
I think AMI should implment as oneway call, why? I think AMI shoul send data in one thread, and it will quickly return , and another thread receive data from server and call callback function. it's mean send data and receive data thread must be two thread , not one thread , if you only have one thread to send and receive data,when you sent data and wait for receive data and when you received data ,then invoke callback function, I think that it's not asynchronous invoke, it's maybe synchronous invoke? is it right?
I have printed out the thread ID, I have found callback class's thread is different than sending data thread, but I can't confirm receiving data thread
Reply With Quote
  #19 (permalink)  
Old 10-03-2004
marc's Avatar
marc marc is offline
ZeroC Staff
 
Name: Marc Laukien
Organization: ZeroC, Inc.
Project: The Internet Communications Engine
 
Join Date: Feb 2003
Location: Florida
Posts: 1,781
That's already the case. The caller thread sends the data, but doesn't receive the response. A thread from the client-side thread pool receives the response and invokes the callback.
Reply With Quote
  #20 (permalink)  
Old 10-03-2004
dragzhb dragzhb is offline
Registered User
 
 
Join Date: Jul 2004
Posts: 63
Send a message via Yahoo to dragzhb
-->
I see, thanks
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT -4. The time now is 05:39 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
(c) 2008 ZeroC, Inc.