![]() |
VOOZH | about |
ProtocolFamily is a java Interface. The java.net.ProtocolFamily represents a family of communication protocols. Java.net.StandardProtocolFamily implements ProtocolFamily Interface.
public interface ProtocolFamily
java.net.ProtocolFamily interface contains only one method:
| S.No. | Method | Description | Return Type |
|---|---|---|---|
| 1. | name() | name() method returns the name of the protocol family | String |
| S.No. | Package | Modifier and Type | Name | Description |
|---|---|---|---|---|
| 1. | java.net | class | StandardProtocolFamily | StandardProtocolFamily class defines the standard families of communication protocols. |
| 2. | java.nio.channels | static DatagramChannel | DatagramChannel.open(ProtocolFamily family) | DatagramChannel.open() static method opens a datagram channel. |
| 3. | java.nio.channels.spi | abstract DatagramChannel | SelectorProvider.openDatagramChannel( ProtocolFamily family) | SelectorProvider.openDatagramChannel Opens a datagram channel. |
Java Program for Better Understanding of the ProtocolFamily Interface
Host Name is 45.22.30.39 Protocol family of the 45.22.30.39 is INET