Skip to content

Commit 6dec8d6

Browse files
committed
fixup! feat: add initial NDN binding implementation
1 parent 6f609cc commit 6dec8d6

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

example/ndn/client_example.dart

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// Copyright 2024 Contributors to the Eclipse Foundation. All rights reserved.
2+
// Use of this source code is governed by a BSD-style
3+
// license that can be found in the LICENSE file.
4+
//
5+
// SPDX-License-Identifier: BSD-3-Clause
6+
7+
// ignore_for_file: avoid_print
8+
9+
import "package:dart_wot/binding_ndn.dart";
10+
import "package:dart_wot/core.dart";
11+
12+
Future<void> main() async {
13+
final servient = Servient(clientFactories: [NdnClientFactory(ndnConfig)]);
14+
}

lib/src/binding_ndn/ndn_consumer_factory.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ import "ndn_config.dart";
99
import "ndn_consumer.dart";
1010

1111
/// A [ProtocolClientFactory] that produces
12-
class NdnConsumerFactory implements ProtocolClientFactory {
13-
NdnConsumerFactory(this.ndnConfig);
12+
class NdnClientFactory implements ProtocolClientFactory {
13+
NdnClientFactory(this.ndnConfig);
1414

1515
/// The [NdnConfig] acting as the blueprint for creating
1616
final NdnConfig ndnConfig;

0 commit comments

Comments
 (0)