register method
- NegotiationsDoneCallback onNegotiationsDone,
- ErrorCallback handleError,
- IsAuthenticatedFunction isAuthenticated,
- SendNonzaFunction sendNonza,
- GetConnectionSettingsFunction getConnectionSettings,
- ResetStreamParserFunction resetStreamParser
Register the parameters as the corresponding methods in this class. Also initializes the logger.
Implementation
void register(
NegotiationsDoneCallback onNegotiationsDone,
ErrorCallback handleError,
IsAuthenticatedFunction isAuthenticated,
SendNonzaFunction sendNonza,
GetConnectionSettingsFunction getConnectionSettings,
ResetStreamParserFunction resetStreamParser,
) {
this.onNegotiationsDone = onNegotiationsDone;
this.handleError = handleError;
this.isAuthenticated = isAuthenticated;
this.sendNonza = sendNonza;
this.getConnectionSettings = getConnectionSettings;
this.resetStreamParser = resetStreamParser;
log = Logger(toString());
}