当有数据通过时,通过此方法把数据转换成NetMessage
注意: 进入 onData中的ByteBuffer参数是网络框架的子序列,对data操作后 所剩的字节数会引影网络
Callback invoked when data bytes are received on a stream.
Implementers should be read or consume the content of the {@link DataInfo} before this method returns.
@param stream the stream @param dataInfo the data metadata
|
|
|
|