Review your favorite Linux distribution.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
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.


  Search this Thread
Old 11-16-2005, 07:29 PM   #1
Registered: Aug 2005
Location: Australia
Distribution: Centos 7
Posts: 58

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


just wondering if someone can tell me:

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

thank you
Old 11-18-2005, 03:21 AM   #2
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
Registered: Aug 2005
Location: Australia
Distribution: Centos 7
Posts: 58

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




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 > Forums > Non-*NIX Forums > Programming

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

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