Closed gorazspajzer closed 3 years ago
This information is not exposed today. We can look into a way to expose that. Should not be too difficult.
With ffc33658b59e57493cd4beb8fdb82d97bbafa203, transport objects are exposed to IHandler implementation. When you create the ConnectionListener, provide a HandlerFactory. The implementation will get notified for events and it can handle those of interests. In this scenario, you would be interested in the following events:
If you need extra information from the client to make a decision, you can set some custom properties (e.g. the IP address) in ListenerConnection.Properties in ConnectionAccept, and then handle the following event,
The speed of response shocked me in a positive way!!! Thanx!!!!!
HI!
I have
public class CBroker : IContainer
and I would like to get user IP in methodLink IContainer.CreateLink(ListenerConnection connection, ListenerSession session, Attach attach)
Or maybe in my class
sealed class APISaslProfile : SaslProfile, IAuthenticated
in methodSaslCode ValidateCredentials(SaslInit init)
I tried to find a way to get client IP but without success :(
Any thoughts? any suggestions?
Thenx!
Gorazd