I need to write a program in BSD sockets which behaves like a file transfer protocol for transferring file contents. It has to use two TCP connections between client and server.
If not code, please provide any other reference material such as flowchart or algorithm for the implementation.
Try going through the FTP documentation available here .