Exemplo n.º 1
0
        public void TestInitialize()
        {
            this.sniffer = new TextWriterSniffer(Console.Out, BinaryPresentationMethod.Hexadecimal);
            this.users   = new Users(new User("testid", "01020304", "HEX"));

            this.toServer = new DtlsBridge(null);
            this.toClient = new DtlsBridge(null);

            this.toServer.RemoteBridge = toClient;
            this.toClient.RemoteBridge = toServer;

            this.client = new DtlsEndpoint(DtlsMode.Client, toServer, this.sniffer);
            this.server = new DtlsEndpoint(DtlsMode.Server, toClient, this.users);
        }
Exemplo n.º 2
0
        public void TestCleanup()
        {
            if (this.client != null)
            {
                this.client.Dispose();
                this.client = null;
            }

            if (this.server != null)
            {
                this.server.Dispose();
                this.server = null;
            }

            this.toServer = null;
            this.toClient = null;
            this.users    = null;
            this.sniffer  = null;
        }
Exemplo n.º 3
0
 public DtlsBridge(DtlsBridge Bridge)
 {
     this.remoteBridge = Bridge;
 }