Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 07-21-2005
rc_hz rc_hz is offline
Registered User
 
Name: Eric RC
Organization: www.genband.com
Project: No project yet
 
Join Date: Jul 2004
Location: Hangzhou, China
Posts: 189
Send a message via MSN to rc_hz
-->
A question about bidirectional connection

Suppose there is a socket connection between peerA and peerB:
peerA <-------------------> peerB

TheadA1 in peerA writes a lot of data to peerB as much as possible;
TheadA2 in peerA read data from peerB as quickly as possible;

TheadB1 in peerB writes data to peerA;
That is , there is no thead in peerB reading data from peerA;

My question:
What will happen at last ? I know TheadA1 in peerA will block, howabout TheadB1 in peerB and ThreadA2 in peerA ?

Thanks!
__________________
Eric RC
www.genband.com (telecommunication)
I like ICE (Ice for C++/Java/Python)
Reply With Quote
  #2 (permalink)  
Old 07-21-2005
benoit's Avatar
benoit benoit is offline
ZeroC Staff
 
Name: Benoit Foucher
Organization: ZeroC, Inc.
Project: Ice
 
Join Date: Feb 2003
Location: Rennes, France
Posts: 1,540
Hi,

ThreadB1 and ThreadA2 shouldn't block and should continue receiving/sending data.

Benoit.
Reply With Quote
  #3 (permalink)  
Old 07-21-2005
benoit's Avatar
benoit benoit is offline
ZeroC Staff
 
Name: Benoit Foucher
Organization: ZeroC, Inc.
Project: Ice
 
Join Date: Feb 2003
Location: Rennes, France
Posts: 1,540
Actually, is your question just about TCP/IP sockets or are you trying to reproduce such a scenario with Ice? If it's the former, I would recommend sending this question to a more appropriate forum. If it's the latter, could you provide more information? By "write a lot of data", do you mean invoking on a oneway or twoway proxy? By "reading data", do you mean dispatching incoming requests? Please also explain why there's "no threads in PeerB to read the data from peerA".

The best would be to provide a small example of what you're trying do, it would be easier to give you a precise answer!

Thanks,

Benoit.
Reply With Quote
  #4 (permalink)  
Old 07-21-2005
rc_hz rc_hz is offline
Registered User
 
Name: Eric RC
Organization: www.genband.com
Project: No project yet
 
Join Date: Jul 2004
Location: Hangzhou, China
Posts: 189
Send a message via MSN to rc_hz
-->
My question just about TCP/IP sockets
__________________
Eric RC
www.genband.com (telecommunication)
I like ICE (Ice for C++/Java/Python)
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
A question about Ice connection laotee Help Center 3 10-26-2005 04:02 AM
Question about the Connection#5 OrNot Help Center 1 08-07-2005 11:16 PM
Question about the Connection#4. OrNot Help Center 3 07-22-2005 11:56 AM
A question about Connection Reuse in Ice rc_hz Help Center 5 06-01-2005 08:31 AM
A question about Connection Management rc_hz Help Center 9 05-31-2005 11:57 PM


All times are GMT -4. The time now is 10:16 PM.


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