refactored private net class into a more general Transport interface