Git Product home page Git Product logo

very-simple-ftp's Introduction

Very-Simple-FTP

A very simple protocol based on SOCKET API

INTRODUCTION

SFTP(RFC 913) is a simple file transfer protocol. It fills the need of people wanting a protocol that allows them to transfer and manage files over networks. SFTP supports user access control, file transfers, directory listing, directory changing, file renaming and deleting.

THE PROTOCOL

VSFTP is used by opening a TCP connection to the remote hosts' VSFTP port (50001 decimal). You then send VSFTP commands and wait for replies. VSFTP commands sent to the remote server are always 4 ASCII letters (of any case) followed by a space, the argument(s), and a NULL. The argument can sometimes be null in which case the command is just 4 characters followed by NULL. Replies from the server are always a response character followed immediately by an ASCII message string terminated by a NULL. A reply can also be just a response character and a NULL.

command : cmd [SPACE args] NULL

cmd : USER!PASS!LIST!RETR!KILL!DONE

response : response-code [message] NULL

response-code: +|-|!|#

message can contain CRLF

Commands that can be sent to the server are listed below. The server replies to each command with one of the possible response codes listed under each message. Along with the response, the server should optionally return a message explaining the error in more detail. Example message texts are listed but do not have to be followed. All characters used in messages are ASCII.

very-simple-ftp's People

Contributors

cazaimi avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.