Added missing write() method to TransportWrapper.