powered by Jive Software

Session's Port Number

Fairly new here, I’m trying to find what port a session was created on so I track down the file descriptor for the socket and not having much luck doing so. I can see the port in the log but can’t seem find what I need to call from inside my SessionEventListener plugin.


Looks like I would need to expose the socket.getLocalPort() in SocketConnection and modify openfire’s code. bummer.

You could always use introspection to avoid modifying code.

https://stackoverflow.com/questions/880365/any-way-to-invoke-a-private-method or