Search code examples
red5

red5: how can i get current IConnection?


under the function appConnect() i added several attributes to the IConnection class of the current connected user.

i want to fetch that information in other functions, how do i get the IConnection of the current connection while i'm not in appConnect() ?


Solution

  • in each function the following command will provide the IConnection of the current connection:

    IConnection conn = Red5.getConnectionLocal();