[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

how to change the FD_SET using FD_SETSIZE

Posted on 2004-04-21
4
Medium Priority
?
1,032 Views
Last Modified: 2007-12-19
Hi

i am doing socket programming in windows . i want to change the size of FD_SET. i used #define FD_SETSIZE 10. i include it before the header file. But programe till take default 64. what to do to change it.


thanks

Sachin Pawar
0
Comment
Question by:123sachin
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 3

Expert Comment

by:PerlKing
ID: 10887726
Even if you set do a #define FD_SETSIZE 10 before the header files, the value is going to overwritten in your header file because somewhere in your header files, you will have a line like #define FD_SETSIZE 64.
I think the only way to change it is to change the header files.

BTW, why exactly do you have such a requirement? Maybe the problem could be solved some other way.
0
 

Author Comment

by:123sachin
ID: 10935568
hi PerlKing,

i solve this by using the condinal preprocessor.
0
 

Accepted Solution

by:
CetusMOD earned 0 total points
ID: 11188534
PAQed, with points refunded (20)

CetusMOD
Community Support Moderator
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
If you are a mobile app developer and especially develop hybrid mobile apps then these 4 mistakes you must avoid for hybrid app development to be the more genuine app developer.
Six Sigma Control Plans
Starting up a Project

656 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question