Packet.Mapper<R>, Packet.Parser, Packet.Visitor
Modifier and Type | Field and Description |
---|---|
Header |
header |
TLV.List<InformationElement,InformationElement.Type,String> |
information |
InetAddress |
localAddress |
int |
localPort |
PeerHeader |
peerHeader |
Optional<OpenPacket> |
recvOpenMessage |
int |
remotePort |
Optional<OpenPacket> |
sendOpenMessage |
Constructor and Description |
---|
PeerUpPacket(Header header,
io.netty.buffer.ByteBuf buffer,
PeerAccessor peerAccessor) |
Modifier and Type | Method and Description |
---|---|
void |
accept(Packet.Visitor visitor) |
<R> R |
map(Packet.Mapper<R> mapper) |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getPeerHeader
public final Header header
public final PeerHeader peerHeader
public final InetAddress localAddress
public final int localPort
public final int remotePort
public final Optional<OpenPacket> sendOpenMessage
public final Optional<OpenPacket> recvOpenMessage
public final TLV.List<InformationElement,InformationElement.Type,String> information
public PeerUpPacket(Header header, io.netty.buffer.ByteBuf buffer, PeerAccessor peerAccessor) throws InvalidPacketException
InvalidPacketException
public void accept(Packet.Visitor visitor)
public <R> R map(Packet.Mapper<R> mapper)
Copyright © 2020. All rights reserved.