Esempio n. 1
0
 async def comain(self):
     face = DummyFace(self.face_proc)
     keychain = KeychainDigest()
     self.app = NDNApp(face, keychain)
     face.app = self.app
     await self.app.main_loop(self.app_main())
Esempio n. 2
0
 def test_main(self):
     face = DummyFace(self.face_proc)
     keychain = KeychainDigest()
     self.app = NDNApp(face, keychain)
     face.app = self.app
     self.app.run_forever(after_start=self.app_main())
Esempio n. 3
0
 async def comain(self):
     face = DummyFace(self.face_proc)
     self.signer = sec.DigestSha256Signer()
     self.app = app.NDNApp(face)
     face.app = self.app
     await self.app.main_loop(self.app_main())