docs(core): Add comments to NegotiationsHandler
This commit is contained in:
parent
355d580a9a
commit
47d821c02e
@ -18,6 +18,7 @@ typedef SendStreamHeadersFunction = void Function();
|
|||||||
/// Return true if the current connection is authenticated. If not, return false.
|
/// Return true if the current connection is authenticated. If not, return false.
|
||||||
typedef IsAuthenticatedFunction = bool Function();
|
typedef IsAuthenticatedFunction = bool Function();
|
||||||
|
|
||||||
|
/// This class implements the stream feature negotiation for XmppConnection.
|
||||||
abstract class NegotiationsHandler {
|
abstract class NegotiationsHandler {
|
||||||
@protected
|
@protected
|
||||||
late final Logger log;
|
late final Logger log;
|
||||||
@ -92,6 +93,8 @@ abstract class NegotiationsHandler {
|
|||||||
Future<void> negotiate(XMLNode nonza);
|
Future<void> negotiate(XMLNode nonza);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// This class implements the stream feature negotiation for usage in client to server
|
||||||
|
/// connections.
|
||||||
class ClientToServerNegotiator extends NegotiationsHandler {
|
class ClientToServerNegotiator extends NegotiationsHandler {
|
||||||
ClientToServerNegotiator() : super();
|
ClientToServerNegotiator() : super();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user