Skip to content

Commit

Permalink
fixup! feat: add initial NDN binding implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
JKRhb committed Apr 28, 2024
1 parent 6f609cc commit 6dec8d6
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
14 changes: 14 additions & 0 deletions example/ndn/client_example.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// Copyright 2024 Contributors to the Eclipse Foundation. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//
// SPDX-License-Identifier: BSD-3-Clause

// ignore_for_file: avoid_print

import "package:dart_wot/binding_ndn.dart";
import "package:dart_wot/core.dart";

Future<void> main() async {
final servient = Servient(clientFactories: [NdnClientFactory(ndnConfig)]);
}
4 changes: 2 additions & 2 deletions lib/src/binding_ndn/ndn_consumer_factory.dart
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import "ndn_config.dart";
import "ndn_consumer.dart";

/// A [ProtocolClientFactory] that produces
class NdnConsumerFactory implements ProtocolClientFactory {
NdnConsumerFactory(this.ndnConfig);
class NdnClientFactory implements ProtocolClientFactory {
NdnClientFactory(this.ndnConfig);

/// The [NdnConfig] acting as the blueprint for creating
final NdnConfig ndnConfig;
Expand Down

0 comments on commit 6dec8d6

Please sign in to comment.