Class PcapChannelConfig
java.lang.Object
io.netty.channel.DefaultChannelConfig
org.apache.plc4x.java.utils.pcap.netty.config.PcapChannelConfig
- All Implemented Interfaces:
io.netty.channel.ChannelConfig
public class PcapChannelConfig
extends io.netty.channel.DefaultChannelConfig
implements io.netty.channel.ChannelConfig
-
Field Summary
FieldsFields inherited from class io.netty.channel.DefaultChannelConfig
channel -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()getMacBasedFilterString(SocketAddress localAddress, SocketAddress remoteAddress) getMacBasedFilterString(org.pcap4j.util.MacAddress localMacAddress, org.pcap4j.util.MacAddress remoteMacAddress) intgetPort()intbooleanboolean<T> booleansetOption(io.netty.channel.ChannelOption<T> option, T value) voidsetPacketHandler(PacketHandler packetHandler) voidsetPort(int port) voidsetProtocolId(int protocolId) Methods inherited from class io.netty.channel.DefaultChannelConfig
autoReadCleared, getAllocator, getConnectTimeoutMillis, getMaxMessagesPerRead, getMaxMessagesPerWrite, getMessageSizeEstimator, getOption, getOptions, getRecvByteBufAllocator, getWriteBufferHighWaterMark, getWriteBufferLowWaterMark, getWriteBufferWaterMark, getWriteSpinCount, isAutoClose, isAutoRead, setAllocator, setAutoClose, setAutoRead, setConnectTimeoutMillis, setMaxMessagesPerRead, setMaxMessagesPerWrite, setMessageSizeEstimator, setOptions, setRecvByteBufAllocator, setWriteBufferHighWaterMark, setWriteBufferLowWaterMark, setWriteBufferWaterMark, setWriteSpinCount, validateMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.netty.channel.ChannelConfig
getAllocator, getConnectTimeoutMillis, getMaxMessagesPerRead, getMessageSizeEstimator, getOption, getRecvByteBufAllocator, getWriteBufferHighWaterMark, getWriteBufferLowWaterMark, getWriteBufferWaterMark, getWriteSpinCount, isAutoClose, isAutoRead, setAllocator, setAutoClose, setAutoRead, setConnectTimeoutMillis, setMaxMessagesPerRead, setMessageSizeEstimator, setOptions, setRecvByteBufAllocator, setWriteBufferHighWaterMark, setWriteBufferLowWaterMark, setWriteBufferWaterMark, setWriteSpinCount
-
Field Details
-
ALL_PROTOCOLS
public static final int ALL_PROTOCOLS- See Also:
-
ALL_PORTS
public static final int ALL_PORTS- See Also:
-
-
Constructor Details
-
PcapChannelConfig
public PcapChannelConfig(io.netty.channel.Channel channel)
-
-
Method Details
-
clone
-
getOptions
- Specified by:
getOptionsin interfaceio.netty.channel.ChannelConfig- Overrides:
getOptionsin classio.netty.channel.DefaultChannelConfig
-
setOption
public <T> boolean setOption(io.netty.channel.ChannelOption<T> option, T value) - Specified by:
setOptionin interfaceio.netty.channel.ChannelConfig- Overrides:
setOptionin classio.netty.channel.DefaultChannelConfig
-
isSupportVlans
public boolean isSupportVlans() -
getPort
public int getPort() -
setPort
public void setPort(int port) -
getProtocolId
public int getProtocolId() -
setProtocolId
public void setProtocolId(int protocolId) -
setPacketHandler
-
getPacketHandler
-
isResolveMacAddress
public boolean isResolveMacAddress() -
getMacBasedFilterString
public String getMacBasedFilterString(org.pcap4j.util.MacAddress localMacAddress, org.pcap4j.util.MacAddress remoteMacAddress) -
getMacBasedFilterString
-