8000 GitHub - fancy-xie/simple-ftp: A simple ftp program written in C language.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fancy-xie/simple-ftp

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

FTP Client-Server Implementation

Simple implementation of file transfer program based on Linux socket programming. It includes custom client and server programs that provide functionality to authenticate a user, list remote files, and retrieve remote files.

基于Linux socket编程的文件传输程序简单实现。包括自定义的客户端和服务器程序,这些程序提供了对用户进行身份验证,列出远程文件以及获取远程文件的功能。

Directory layout:

simple-ftp/
	client/
		ftclient.c
		ftclient.h
		makefile
	common/
		ftcommon.c
		ftcommon.h
	server/
		ftserver.c
		ftserver.h
		makefile
		.auth

###Usage

To compile and link ftserver:

	$ cd server/
	$ make

To compile and link ftclient:

	$ cd client/
	$ make

To run ftserve:

	$ server/ftserve PORTNO

To run ftclient:

	$ client/ftclient HOSTNAME PORTNO

	Commands:
		list
		get <filename>
		quit

Available commands:

list            - retrieve list of files in the current remote directory / 检索当前远程目录中的文件列表
get <filename>  - get the specified file / 获取指定的文件
quit            - end the ftp session / 结束ftp会话

Logging In:

	Name: anonymous
	Password: [empty]

About

A simple ftp program written in C language.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0