FTP's algorithm

what algorithm a FTP application uses i mean whn implemented in socket programming..if you could give a little decription

Which FTP algorithm? There has to be many hundreds in any FTP implementation. Pick one of the freely available Unix/Linux versions and look through its source code; maybe that will help you narrow down what you really want to know.