Home > Net >  C # UDPClient send data can't across the switch
C # UDPClient send data can't across the switch

Time:09-22

Broadcast to send UDPClient implementation using c # language group, set the TTL, but the data still can't across the switches, the code is as follows:
Public static void GetSetTtl UdpClient (u)
{
//Set the Time To Live (TTL) for this client.
U.T tl=42;
Console. WriteLine (" Ttl value is {0} ",
U.T tl);
}
Set after debugging TTL set no problem, but still caught the data TTL set to 1, data across the switches is a hard, just please look at what is UDPClient class have great spirit defects?
I am using VS2010.

CodePudding user response:

Should have no relationship, and switches the udp running above the IP layer, switches are generally the second or the third floor

CodePudding user response:

Switches, no special setting not forward radio (BroadCast), imagine if the switches are forward radio, a radio is not spread to the whole world?

If it is MultiCast (MultiCast), MultiCast is "to 239.255.255.255 IPv4 range, and need the support of the switch (when you join a MultiCast group, switches need to register your subscription, forward to other segments of the MultiCast), some of the old type switch does not support MultiCast,


CodePudding user response:

refer to the second floor github_36000833 response:
switches, no special setting not forward radio (BroadCast), imagine if the switches are forward radio, a radio is not spread to the whole world?

If it is MultiCast (MultiCast), MultiCast is "to 239.255.255.255 IPv4 range, and need the support of the switch (when you join a MultiCast group, switches need to register your subscription, forward to other segments of the MultiCast), some of the old type switch does not support MultiCast,

Switch Settings must be no problem, I am the use of group broadcast to send, in another language is to write tests can be exchanged across units to deliver broadcast, can't only in c #,
  •  Tags:  
  • C#
  • Related