LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 11-16-2005, 07:29 PM   #1
tara
Member
 
Registered: Aug 2005
Location: Australia
Distribution: Mageia 1
Posts: 53

Rep: Reputation: 15
max number multicast addresses and port numbers


Hi

just wondering if someone can tell me:

1) what the maximum number of mulitcast addresses a C program can listen to,
and
2) what the maximum number of ports a C program can bind to.

thank you
Tara
 
Old 11-18-2005, 03:21 AM   #2
fvgestel
LQ Newbie
 
Registered: Oct 2005
Location: Netherlands
Posts: 21

Rep: Reputation: 15
I don't know how many multicast adresses, but I do know that the maximum number of open sockets in a C-program is equal to the maximum number of file-descriptors in a C-program, which is 1024 for a 2.0 kernel and almost unlimited for 2.4/2.6 kernels
see the man page for ulimit and /proc/sys/fs/file-max for details

Greets, Frank
 
Old 11-20-2005, 05:53 PM   #3
tara
Member
 
Registered: Aug 2005
Location: Australia
Distribution: Mageia 1
Posts: 53

Original Poster
Rep: Reputation: 15
Hi Frank


thanks for that, much appreciated, have no idea it was that many!

for everyone's information I have found out the max number of multicast IP addresses in /usr/include/bits/in.h

#define IP_MAX_MEMBERSHIPS 20


cheers
Tara
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
max numbers of ide & partition davidhk Debian 4 08-28-2005 05:21 PM
max socket number sector Programming 1 06-30-2003 09:11 AM
max socket number sector Linux - General 1 06-30-2003 09:09 AM
max socket number sector Linux - Software 0 06-30-2003 08:52 AM
devfs max major/minor numbers devershetty Linux - Newbie 1 06-17-2003 09:37 PM


All times are GMT -5. The time now is 05:04 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration