CFanatic

Go Back   CFanatic > Programming > Win32 Programming

Join CFanatic Forum Now

Select() call behaviour topic posted under Win32 Programming which is a part of Programming category in CFanatic Forum
Reply
 
Thread Tools Display Modes
  #1  
Old 09-20-2006, 03:15 AM
Junior Member
 
Join Date: Sep 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Amit is on a distinguished road
| More
Select() call behaviour

Hi All,

I am working on a protocol development which involves use of TCP as transport protocol. In this I am creating two task(threads) one for reading and other for sending the data to the same socket( I am using the non-blocing socket) . In read task I am adding the sock fd to the readfd set and calling select only over the readfd set(Write and Exception fd set are null). Select gets bolcked and waits for some operation to occur on readfd set. But if at the same time if I try to send data from the send task (while read task is waiting over select) it is getting blocked within the send() call of send task.

Can anybody tell me why this is happening?

when i am adding the writefd set in the select call that time select becomes non block and returing over the writefd set even when I am not sending any data form send task.

Thanks in Advance.

Regards,
Amit
Reply With Quote
Reply

Thread Tools
Display Modes

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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Win32 SetText call to a TextBox in IEFrame RobK Win32 Programming 0 06-26-2008 01:56 PM

 

Advertisement

CFanatic Search
Custom Search

Advertisement

All times are GMT -5. The time now is 03:55 PM.



Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO ©2010, Crawlability, Inc.
Cfanatic.com is a premier member of the IDG TechNetwork. For advertising opportunities contact here
Get Paid for Working on Projects Matching Your Expertise at Go4Expert's Jobs Board