I'm having problems receiving a multicast datagram on a Intermec 700c Pocket
PC verison 3.0 . I have installed an exact copy of this test C# client
application on a WIN 2000 machine and it receives the multicast with ease.
The same application on PocketPC never seems to see anything incoming.
Do I need to do anything on Pocket PC to enable multicast? Note both the
Pocket PC and the Win 200 machine are connected to the ethernet through
802.11b from the same access point. The Application was created in VisStudio
2003. Also note I can send and receive unicast datagrams from the same
server that's sending the multicast datagrams. ( So the network routing
etc... is good)
Here I join the multicast group after creating the client.
receivePoint = new IPEndPoint ( new IPAddress( 0 ), 0 );
client = new UdpClient( 5050 );
try
{
client.JoinMulticastGroup(IPAddress.Parse("239.255.1.1"), 10);
}
catch ( Exception e )
{
Console.WriteLine( e.ToString());
}
Thread thread =
new Thread( new ThreadStart( WaitForPackets ) );
thread.Start();
}
----------------------------------------------
My threaded method looks like..........
public void WaitForPackets()
{
while ( true )
{
// receive byte array from server
byte[] data = client.Receive( ref receivePoint );
string stringPacket =
System.Text.Encoding.ASCII.GetString( data, 0, data.Length );
// output packet data to TextBox
displayTextBox.Text += "\r\nPacket received:" +
"\r\nLength: " + data.Length + "\r\nContaining: " +
System.Text.Encoding.ASCII.GetString( data, 0, data.Length ) +
"\r\nFrom:" + receivePoint.Address.ToString () + "\r\nPort:" +
receivePoint.Port.ToString ();
test.Text = "The test has Ended.";
}
}
Any ideals how I can research why the datagram is not received in Pocket PC.
thanks
Chris