The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
February 2002

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

send code

Posted by ping203 on February 12, 2002 at 4:25 PM

if you could post the sending part, I mean the actual code,
something like the following:

InetAddress group = InetAddress.getByName("228.5.6.7");
MulticastSocket s = new MulticastSocket(port);
DatagramPacket packet = new DatagramPacket(msg.getBytes(),msg.length(), group, port);
s.send(packet );

will be helpful to determine what goes wrong




Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us