Symbian
Symbian OS Library

FAQ-0747 Is java.net.MulticastSocket implemented on Symbian OS?

[Index][spacer] [Previous] [Next]



 

Classification: Java Category: java.net
Created: 11/07/2001 Modified: 12/03/2001
Number: FAQ-0747
Platform: Symbian OS v6.0, Symbian OS v6.1, Symbian OS v7.0

Question:
Is java.net.MulticastSocket implemented on Symbian OS?

Answer:
There is no native support for Multicast sockets and hence the methods of the java.net.MulticastSocket class are unimplemented. On target hardware or on the emulator using the Symbian OS networking layer invocation of methods of the MulticastSocket class will result in an exception being thrown. For example
    Exception in thread "main" java.lang.UnknownError: unimplemented
    at java.net.MulticastSocket.joinGroup(MulticastSocket.java:145)
    at MCSocket.testMCSocket(MCSocket.java:19)
    at MCSocket.main(MCSocket.java:43)

      On the emulator using the Windows networking layer no such exception is thrown since the native implementation of the methods of MulticastSocket is provided by the Windows networking APIs. This is therefore an instance of when it is necessary to use the Symbian networking layer to provide true emulation of the target hardware. For more information on how to choose which networking layer the emulator uses see the SDK documentation Networking on the Emulator.

      There are no plans to provide implementation of Multicast sockets.