netty5/transport-native-unix-common-tests/src/main/java/io/netty/channel/unix/tests
louxiu 3c4dfed08a Fix handle of ByteBuf with multi nioBuffer in EpollDatagramChannel and KQueueDatagramChannel
Motivation:
1. special handling of ByteBuf with multi nioBuffer rather than type of CompositeByteBuf (eg. DuplicatedByteBuf with CompositeByteBuf)
2. EpollDatagramUnicastTest and KQueueDatagramUnicastTest passed because CompositeByteBuf is converted to DuplicatedByteBuf before write to channel
3. uninitalized struct msghdr will raise error

Modifications:
1. isBufferCopyNeededForWrite(like isSingleDirectBuffer in NioDatgramChannel) checks wether a new direct buffer is needed
2. special handling of ByteBuf with multi nioBuffer in EpollDatagramChannel, AbstractEpollStreamChannel, KQueueDatagramChannel, AbstractKQueueStreamChannel and IovArray
3. initalize struct msghdr

Result:
handle of ByteBuf with multi nioBuffer in EpollDatagramChannel and KQueueDatagramChannel are ok
2017-05-26 07:56:34 +02:00
..
package-info.java New native transport for kqueue 2017-05-03 09:53:22 -07:00
SocketTest.java KQueueSocket#setTrafficClass exceptions 2017-05-18 11:26:27 -07:00
UnixChannelUtilTest.java Fix handle of ByteBuf with multi nioBuffer in EpollDatagramChannel and KQueueDatagramChannel 2017-05-26 07:56:34 +02:00
UnixTestUtils.java New native transport for kqueue 2017-05-03 09:53:22 -07:00