netty5/transport-native-kqueue/src/main/c
EliyahuStern 5dacc5f3da Resolve the pid field in PeerCredentials of KQueueDomainSocketChannels. (#9219)
Motivation:

This resolves a TODO from the initial transport-native-kqueue implementation, supplying the user with the pid of the local peer client/server process.

Modification:

Inside netty_kqueue_bsdsocket_getPeerCredentials, Call getsockopt with LOCAL_PEERPID and pass it to PeerCredentials constructor.
Add a test case in KQueueSocketTest.

Result:

PeerCredentials now have pid field set. Fixes https://github.com/netty/netty/issues/9213
2019-06-04 05:16:11 -07:00
..
netty_kqueue_bsdsocket.c Resolve the pid field in PeerCredentials of KQueueDomainSocketChannels. (#9219) 2019-06-04 05:16:11 -07:00
netty_kqueue_bsdsocket.h New native transport for kqueue 2017-05-03 09:53:22 -07:00
netty_kqueue_eventarray.c Fix ClassCastException and native crash when using kqueue transport. (#8665) 2018-12-19 12:14:11 +01:00
netty_kqueue_eventarray.h New native transport for kqueue 2017-05-03 09:53:22 -07:00
netty_kqueue_native.c Correctly handle overflow in Native.kevent(...) when EINTR is detected (#9024) 2019-04-10 11:32:26 +02:00