This sets the class used when creating new network connections.
The class must be derived from NetworkConnection.