blindacai / ftp-server Goto Github PK
View Code? Open in Web Editor NEWcan respond to basic commands from a client like cd, list, passive mode and file retrieval
can respond to basic commands from a client like cd, list, passive mode and file retrieval
Heard it's similar to a1, but this time the server needs to parse client's commands and send back responses
We can test it using a1 or netcat
In /test/server.c, we will mostly look at accept() and send()
How to compile and run C in Unix:
gcc -o out some_name.c
./out
How to debug?
Everything should be compiled in Unix
Be careful when look up usage of C functions. Many only apply to Windows
A reliable source is to use command: man <function_name>, choose 3
we only deal with one client here
eventually should test it with client: ftp ftp.cs.ubc.ca(should be localhost?) 3500 (don't choose port below 1024)
You might find the Unix library routines strncmp(), toupper(), or the whole set of regex routines helpful
Start with 'user cs317' with no password, the only user name the program should accept.
Otherwise: '530 Not logged in'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.