public class SctpPacketImpl extends TransportPacketImpl implements SctpPacket
| Modifier and Type | Method and Description |
|---|---|
TransportPacket |
clone() |
static SctpPacket |
frame(IPPacket ipPacket,
Buffer buffer) |
List<SctpChunk> |
getChunks() |
int |
getHeaderLength() |
void |
write(OutputStream out,
Buffer payload)
Writes this packet to the
OutputStream with the supplied payload. |
getArrivalTime, getDestinationPort, getNextPacket, getParentPacket, getSourcePort, isSCTP, isTCP, isUDP, setDestinationPort, setSourcePort, verifycheckParent, getName, getPacket, getPayload, getProtocol, hasProtocol, writeequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDestinationPort, getParentPacket, getSourcePort, isSCTP, isTCP, isUDP, setDestinationPort, setSourcePortgetArrivalTime, getName, getNextPacket, getPacket, getPayload, getProtocol, hasProtocol, verify, writepublic static SctpPacket frame(IPPacket ipPacket, Buffer buffer)
frame in interface SctpPacketpublic List<SctpChunk> getChunks()
getChunks in interface SctpPacketpublic int getHeaderLength()
getHeaderLength in interface TransportPacketpublic void write(OutputStream out, Buffer payload) throws IOException
PacketOutputStream with the supplied payload.
You can use this method to e.g. write a raw UDPPacket to the
stream with this payload. Note, if the UDPPacket already had a
payload it will be ignored so use this method with care.write in interface PacketIOExceptionpublic TransportPacket clone()
clone in interface Packetclone in interface TransportPacketclone in class TransportPacketImplCopyright © 2021. All Rights Reserved.