Class UdpSocketChannelFactory
- java.lang.Object
-
- org.apache.plc4x.java.base.connection.UdpSocketChannelFactory
-
- All Implemented Interfaces:
org.apache.plc4x.java.base.connection.ChannelFactory
public class UdpSocketChannelFactory extends Object implements org.apache.plc4x.java.base.connection.ChannelFactory
-
-
Constructor Summary
Constructors Constructor Description UdpSocketChannelFactory(InetAddress address, int port)
-
Method Summary
Modifier and Type Method Description io.netty.channel.ChannelcreateChannel(io.netty.channel.ChannelHandler channelHandler)InetAddressgetAddress()intgetPort()voidping()
-
-
-
Constructor Detail
-
UdpSocketChannelFactory
public UdpSocketChannelFactory(InetAddress address, int port)
-
-
Method Detail
-
createChannel
public io.netty.channel.Channel createChannel(io.netty.channel.ChannelHandler channelHandler) throws org.apache.plc4x.java.api.exceptions.PlcConnectionException- Specified by:
createChannelin interfaceorg.apache.plc4x.java.base.connection.ChannelFactory- Throws:
org.apache.plc4x.java.api.exceptions.PlcConnectionException
-
ping
public void ping() throws org.apache.plc4x.java.api.exceptions.PlcException- Specified by:
pingin interfaceorg.apache.plc4x.java.base.connection.ChannelFactory- Throws:
org.apache.plc4x.java.api.exceptions.PlcException
-
getAddress
public InetAddress getAddress()
-
getPort
public int getPort()
-
-