Ked #1 I think you would use FTP instead of TCP. There are some examples of FTP in the Code Archives.