netty5/transport-native-kqueue/src
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
..
main Resolve the pid field in PeerCredentials of KQueueDomainSocketChannels. (#9219) 2019-06-04 05:16:11 -07:00
test/java/io/netty/channel/kqueue Resolve the pid field in PeerCredentials of KQueueDomainSocketChannels. (#9219) 2019-06-04 05:16:11 -07:00