您好,欢迎光临本网站![请登录][注册会员]  
文件名称: linux 下 结合ftp 和部分telnet 功能的服务器源码
  所属分类: Linux
  开发工具:
  文件大小: 21kb
  下载次数: 0
  上传时间: 2009-05-31
  提 供 者: huc****
 详细说明: ################################################################################ # # # Super Ftp Server and Client for Wall-e # # # # SunMay30 2009 # # # ################################################################################ ////////\\\\\\\ ||Introduct || \\\\\\\\/////// Wall-e is a team for a project about two-demision code , for details at this:http://hi.baidu.com/hzau_wall_e this server and client programs is created for the s3c2410 platform board to conveniencely control it and fulfil files transferring at the same time , that is a simple combination for telnet and ftp server. Of course there are many fails and bugs in it , I'll appreciate the correction and criticism! ////////\\\\\\\ ||Functions || \\\\\\\\/////// 1 no count and no authentication , the shell running level result in who run the server in server side 2 basic ftp transferring functions as get files (g files ) and send files(s fname). 3 running common shells in client side(!cmd) and server side(cmd) 4 support multi-connections 5 error return: the server side will print error message in /var/log/wasd.log, and the client side will print these to stderr ////////\\\\\\\ || Usage || \\\\\\\\/////// 0 make the server and client change to this direction in console and run make [target] target: 1) null equal to all 2) all make server and client for both platform (arm and x86 linux) 3) host server (server_h) and client (client_h) for x86 linux 4) arm server (server_a) and client (client_a) for arm linux 5) hsac server (wasd) for x86 and client(was) for arm linux 6) ashc server (wasd) for arm and client (was) for x86 linux 7) best equals to ashc 8) you can change thest by edit Makefile 1 run the server and client server: ./server_x # x is for your platform h for host pc, a for arm, for details to see Makefile client: ./client_x xx.xx.xx.xx then you can operate in the client side. the prompt of client side will be: Walle> 2 run server side shells [usage] : cmd [return]: return what the shell will return to stdout and stderr . [eg]: Walle>ls -l 总计 152 -rwxr-xr-x 1 root root 17382 05-30 22:00 client_a -rwxr-xr-x 1 root root 13060 05-30 22:00 client_h -rw-r--r-- 1 root root 4485 05-30 16:01 common.h -rwxr-xr-x 1 root root 462 05-30 21:43 Makefile -rw-r--r-- 1 root root 579 05-30 22:00 README -rw-r--r-- 1 root root 577 05-30 22:00 README~ -rwxr-xr-x 1 root root 20835 05-30 22:00 server_a -rwxr-xr-x 1 root root 16176 05-30 22:00 server_h -rwxr-xr-x 1 root root 5225 05-30 21:47 sock_client.c -rwxr-xr-x 1 root root 4362 05-30 15:09 sock_server.c Walle>cd /root Walle>pwd /root Walle> Walle>get aaa sh: get: command not found Walle> 3 run client side local shells [usage] :! cmd [return]: return what the shell will return to stdout and stderr . [eg] : Walle>!ls /root a es OperaDownloads aa f Pictures anaconda-ks.cfg fcitx Public automake_cn.htm g save_usb b install server_a client_h install.log server_h common.c install.log.syslog src common.h~ ked tcpd-0.2.0.tar.gz dairy Music Templates Desktop my_fs tmp Documents myos Unsaved Document 1 4 send files [usage] :s localfilename [return]: return successfully message,if success, or print error messages error message will be introduced below [eg] : Walle>! cd /usr/src/ Walle>s qt-embedded-linux-opensource-src-4.4.3.tar.gz send files successfully! Walle>ls -l ...... 1 root root 124238957 05-30 22:09 qt-embedded-linux-opensource-src-4.4.3.tar.gz Walle> tar xzvf qt-embedded-linux-opensource-src-4.4.3.tar.gz ...... 5 get files [usage] : g remotefilename [return]: return successfully message,if success, or print error messages error message will be introduced below [eg] : Walle> ls .... Walle>g tcpd-0.2.0.tar.gz get remote files successfully! Walle> 5 error return xsh:cmd: xxx xxx : error return from shells E_F_N_EST : file does not exists! E_SEND_ERR : send socket data err! case E_RPC_TIMEOUT : socket rpc timeout!(wait for sequential secs no data arrives ) case E_F_C_ERR : file create error! case E_REV_ERR : rev socket data error case E_BAD_SOCK_FD : default : unknown error! 6 bugs both side couldn't send control signal to each other, that is you can only send message that after a line break. so there are many shells programs couldn't be runned by client side(I'm really sorry for this): vi, ex,ed ,top ... running these progs will result in "RPC Timeout " errors after 5 secs, but the server and client will still work normally! 7 contact if you've any questions please send Email to me at supertiger@yahoo.cn or chat me by QQ : 547268476, I'll appreciate it ! ...展开收缩
(系统自动生成,下载前可以参看下载内容)

下载文件列表

相关说明

  • 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
  • 本站是交换下载平台,提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度
  • 本站已设置防盗链,请勿用迅雷、QQ旋风等多线程下载软件下载资源,下载后用WinRAR最新版进行解压.
  • 如果您发现内容无法下载,请稍后再次尝试;或者到消费记录里找到下载记录反馈给我们.
  • 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
  • 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.
 相关搜索: linux ftp 服务器源码
 输入关键字,在本站1000多万海量源码库中尽情搜索: