Add support tcp and Linux sendfile

This version may send file via tcp and ssl connections.