Solved

how to change the FD_SET using FD_SETSIZE

Posted on 2004-04-21
4
1,002 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
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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
pairs challenge 5 77
base64 decode encode 12 134
Currency Conversion? 1 87
Please explain: Aspect Oriented Programming 2 93
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
If you’re thinking to yourself “That description sounds a lot like two people doing the work that one could accomplish,” you’re not alone.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
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…

810 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