Reputation: 174
My server is using spring-integration-ip,and the server-client connection is using long connection.My question is:if I can get the client's ip when connected or disconneted, such as the channelConnected() or channelDisconnected() method in Netty?
Upvotes: 0
Views: 290
Reputation: 174779
It is not available with the current 2.2.x release.
The upcoming 3.0 release emits connect/disconnect events; see what's new. The event source is the connection and the getHostAddress()
method on the connection returns the remote ip address.
Upvotes: 3