org.littleshoot.stun.stack.transaction
Interface StunTransactionListener<T>

Type Parameters:
T - The return type of the event methods.
All Known Implementing Classes:
StunTransactionTrackerImpl

public interface StunTransactionListener<T>

Interface for classes wishing to listen for STUN transtaction events.


Method Summary
 T onTransactionFailed(StunMessage request, StunMessage response)
          Called when the transaction failed with an error response, a timeout, or for any other reason.
 T onTransactionSucceeded(StunMessage message, StunMessage response)
          Called when the transaction completed normally with a successful binding response.
 

Method Detail

onTransactionSucceeded

T onTransactionSucceeded(StunMessage message,
                         StunMessage response)
Called when the transaction completed normally with a successful binding response.

Parameters:
message - The binding request.
response - The binding response.
Returns:
The return type of the event methods.

onTransactionFailed

T onTransactionFailed(StunMessage request,
                      StunMessage response)
Called when the transaction failed with an error response, a timeout, or for any other reason.

Parameters:
request - The original request.
response - The binding response.
Returns:
The return type of the event methods.


Copyright © 2013 LittleShoot. All Rights Reserved.