Make the transport method of the socket variable.