Solved

how to change the FD_SET using FD_SETSIZE

Posted on 2004-04-21
4
987 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
4 Comments
 
LVL 3

Expert Comment

by:PerlKing
Comment Utility
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
Comment Utility
hi PerlKing,

i solve this by using the condinal preprocessor.
0
 

Accepted Solution

by:
CetusMOD earned 0 total points
Comment Utility
PAQed, with points refunded (20)

CetusMOD
Community Support Moderator
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Windows 10 SmartScreen vs ClickOnce app 5 132
Batch file output 20 76
for loop with Set 4 45
base64 decode encode 12 96
I know it’s not a new topic to discuss and it has lots of online contents already available over the net. But Then I thought it would be useful to this site’s visitors and can have online repository on vim most commonly used commands. This post h…
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

743 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now