session: generalize handling of network transports