Solved

how to change the FD_SET using FD_SETSIZE

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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
detecting  the added row index in a datagridview 3 93
VbScript to countdown to New Year's Day 6 91
iSeries email authority 6 110
Mutiple Folder view (5 Folder view) 3 80
This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

737 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