Menu

Netlib NetFactory

Tobias Boese

Abstract: This page describes the Java class NetFactory and interface NetLayerIDs of the silvertunnel-ng.org Netlib API.

Introduction

NetFactory is helper/factory class that can be used to get NetLayer. The instances are cached inside the factory, i.e. you will always get the same instance if you request a instance of the same type.

Typical Usage

  • example to get a TorNetLayer:

        // get TorNetLayer instance and wait until it is ready
    NetLayer netLayer = NetFactory.getInstance().getNetLayerById(NetLayerIDs.TOR);
    netLayer.waitUntilReady();

  • see [Netlib Direct API Usage] for more


Top: [Netlib], Next: [Netlib Tools]


Related

Wiki: Netlib Direct API Usage
Wiki: Netlib Tools
Wiki: Netlib

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.