473,387 Members | 1,882 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Multicasting - how to block a receiver

175 100+
I'm working on creating a multicasting project in C# ... I've got groups for different clients to be in, where they can only talk to each other, and understand the setup, but I'm having a problem that I can't find a solution to -- everyone who sends something gets it right back ( since I need the send/receive port to be the same within each group ). I'm trying to block the sender from receiving what they have just sent ( but continue to receive from others ). Is this possible? I can not figure out a way to do it.

If you'd like to see what I'm doing let me know. If anyone can point me in the right direction I would greatly appreciate it.
Nov 16 '10 #1
1 1482
Oralloy
988 Expert 512MB
Don't block the message, just inspect the incoming message and verify that you didn't send it.

You'll have to maintain a list of local IP addresses.

When you do a recvfrom(...), then you can check that the source IP address isn't in your list. If it is, just ignore the message.

If you are using raw IP, you will have to deconstruct the packet yourself to extract the originating address.

Luck!
Oralloy
Nov 16 '10 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: David Morgan | last post by:
Hello I am trying to write a routine that will retrieve all the messages in my SMTP Service Drop Folder and process them one by one based on the address(es) to which the mail was sent. When...
0
by: Nicholas Beenham | last post by:
Hi all, I'm having problems with a udpclient with multicasting and then waiting for a response and if none arrives closes after a few seconds. I have the client multicasting fine but am having...
0
by: gregory_may | last post by:
I posted this in the dotnet.framework group with no responce yet, maybe someone in these groups can point me in the right direction? Or maybe I need to use something already in .Net to get an IGMP...
8
by: Pete | last post by:
Assume I have an n by n matrix of identical objects, each of which can both invoke and consume event A. If, say, obect invokes the event, the only other objects that need to consume it are those in...
0
by: POgletree | last post by:
I need to set up a small client/server or, best solution, a peer-to-peer system to swap data strings between wide spread users. I've looked at IP multicasting and it seems like a reasonable...
1
by: Summa | last post by:
I want to sign a XML document using sender’s private key and then receiver’s public key. Signing using sender’s private key is working fine. But i couldn’t find how to encrypt that signed XML using...
9
by: Sayudh27 | last post by:
Hi all, I am a relatively new programmer in C++...I need to write a code that performs multicasting as well as returns the data-packets in a decompressed form.Data-receipt seems to work...
1
by: Nick | last post by:
Does any one have a simple wcf of udp multicating other than the one posted here http://wcf.netfx3.com/files/folders/transport_channels/entry5235.aspx I would like a program with just the basics...
10
by: Hendrik van Rooyen | last post by:
While doing a netstring implementation I noticed that if you build a record up using socket's recv(1), then when you close the remote end down, the recv(1) hangs, despite having a short time out...
0
by: noroi | last post by:
Hi all, I got some problems while running the FM receiver's example codes from the GNURadio tutorial page; the RF front end is set to call the signal input from daughter board, and when the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.