LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 01-13-2009, 07:45 AM   #1
deb1513
LQ Newbie
 
Registered: Nov 2008
Posts: 6

Rep: Reputation: 0
Bind succeeded but not receiving mulitcast packets


Hi,
I have a mulitcast client server program. I have added the interface to the
mulitcast group and also binded on that interface to receive mulitcast
packets. When the mulitcast packets arrive I am not able to receive
the mulitcast packets. This is happening when I do the bind to the
interface on which i want to listen. Instead if i do a bind on
INADDR_ANY, then I am able to receive the mulitcast packets.


Can anyone tell me the reason..'


Thanks in advance
 
Old 01-14-2009, 01:03 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
I assume the packets are not addressed to the address you bind to. I hope this is clear enough. If not, just ask
 
Old 01-14-2009, 10:22 PM   #3
deb1513
LQ Newbie
 
Registered: Nov 2008
Posts: 6

Original Poster
Rep: Reputation: 0
Hi Mara,
The Packets are destined to the same address and port where it is bind to. As the Destination address is a multicast address so the receiver can't bind his socket to that address. But it is binding to an IP interface where from it can receive the multicast address. But it is not able to receive any packet. I think now you understand what i m trying to say.

Thanks.
 
Old 01-14-2009, 10:28 PM   #4
deb1513
LQ Newbie
 
Registered: Nov 2008
Posts: 6

Original Poster
Rep: Reputation: 0
Let me clear some few points, so to understand the scenario better,

1. Receiver is registered to a particular multicast address and port
sender is trying to send his message to that particular multicast address and port.

2. I have only one Ethernet Interface and i am binding the receiver's socket to that particular IP interface address.
 
  


Reply



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
Receiving Packets Simultaneously in Two Different Network Interface ? citiz3n Linux - Networking 4 05-25-2008 07:38 PM
Multicasting not receiving packets :( culin Linux - Networking 2 09-27-2007 05:02 AM
I'm receiving packets but not sending on a wireless network chetjordan2002 Linux - Wireless Networking 2 07-29-2006 12:52 PM
java multicast - problems receiving packets champ Programming 2 05-31-2006 10:33 AM
Only receiving UDP packets, no TCP erevlehdeux Linux - Networking 1 04-23-2004 07:36 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 07:11 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration