New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

github.com/justinpage/simple-ftp-server

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/justinpage/simple-ftp-server

  • v0.0.0-20200625192609-7b4d9c253711
  • Source
  • Go
  • Socket score

Version published
Created
Source

Simple FTP server

A concurrent File Transfer Protocol (FTP) server

Remote system type is UNIX.
Using binary mode to transfer files.
ftp> ls
227 Entering Passive Mode (127,0,0,1,215,236)
150 Accepted data connection
-rw-r--r--    1 justinpage  staff            10 May  20 13:28 message.md
drwxr-xr-x    3 justinpage  staff            96 May  20 13:28 server

About

The Go Programming Language textbook offers a study of concurrency using CSP. One of the exercises, created as a challenge for the reader, is to implement a concurrent File Transfer Protocol (FTP) server. That is, a server that allows concurrent connections from multiple clients.

While not a complete implementation of RFC 959, this exercise provides a survey of commands commonly used when interacting with an FTP server. This includes cd to change a directory, ls to list a directory, get to send the contents of a file, put to store the contents of a file, and many more.

As is in the name, simple-ftp-server, I wanted to create a simple FTP server that could be digested by someone new to the language or looking to build their own FTP server. Much of the logic implemented is sequential and doesn't shy away from duplication as design.

Compile

You will need the latest stable version of go installed on your machine:

https://golang.org/dl/

Run the following commands to download and build for execution:

  1. git clone https://github.com/justinpage/simple-ftp-server.git
  2. cd simple-ftp-server
  3. go build -o server main.go

Execute

  1. Launch ftp server: ./server
  2. Connect: ftp -P 8080 localhost
  3. Stop ftp server: Control+C to interrupt the process with SIGINT

References

FAQs

Package last updated on 25 Jun 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc