public interface ISctpReader
Modifier and Type | Method and Description |
---|---|
void |
read(byte[] msg,
com.sun.nio.sctp.MessageInfo msgInfo)
Called when a new message was received from the remote end.
|
void |
read(ByteBuffer msg,
com.sun.nio.sctp.MessageInfo msgInfo)
Called when a new message was received from the remote end.
|
void read(byte[] msg, com.sun.nio.sctp.MessageInfo msgInfo)
The passed array can be safely stored or modified by this method as it will not be used by the caller.
msg
- the message received from the remote end.msgInfo
- additional ancillary information about the received message.void read(ByteBuffer msg, com.sun.nio.sctp.MessageInfo msgInfo)
The passed buffer can be safely stored or modified by this method as it will not be used by the caller.
msg
- the message received from the remote end.msgInfo
- additional ancillary information about the received message.Copyright © 2017–2022 SNF4J.ORG. All rights reserved.