Find Jobs
Hire Freelancers

Write some Software

$10-30 USD

已完成
已发布超过 8 年前

$10-30 USD

货到付款
You are required to implement a very simple FTP server and client. The server (using TCP sockets) should take the list of available files as command-line arguments. For example: java [login to view URL] [login to view URL] [login to view URL] [login to view URL] The client should take the server address and port as command-line arguments. For example: java [login to view URL] [login to view URL] 5115 Then, the client should wait for user input from STDIN, and should support the following three commands:  dir -- retrieves the list of files offered, and prints them on the screen  get <filename> -- retrieves the file with the given filename  bye -- closes the communication with the server and exits Any other input should be ignored (not exiting!) with a simple “syntax error” message printed on the screen. Socket interface: For the TCP sockets implementation, your client should connect to the server, and send it a String (use ObjectInputStream and ObjectOutputStream) containing one of the following commands, expecting the respective responses from the server:  dir -- The server sends back a String[] containing the filenames of available files  blocks filename (for instance: blocks [login to view URL]) -- The server sends back an integer (use [login to view URL]()) denoting the number of 1024-byte blocks in that file. For instance, if a file has 5000 bytes, it has 5 blocks (4 blocks of 1024 bytes and a final block of 904 bytes)  get filename block (for instance: get [login to view URL] 4) -- The server sends back a 1024 byte long block of the file. The last block of the file may have less than 1024 bytes. Program functions and features:  Relevant and meaningful error messages during the operation of the Client and Server programs  Option to choose the desired folder(s) and file(s) for both Server and Client environment  Option to search for the desired file to Send or Receive for both Server and Client environment  Ability to a transfer file in both direction between Server and Client  Transferring of different file types and sizes 
项目 ID: 8424971

关于此项目

2提案
远程项目
活跃9 年前

想赚点钱吗?

在Freelancer上竞价的好处

设定您的预算和时间范围
为您的工作获得报酬
简要概述您的提案
免费注册和竞标工作
颁发给:
用户头像
A proposal has not yet been provided
$11 USD 在1天之内
5.0 (1条评论)
0.0
0.0
2威客以平均价$18 USD来参与此工作竞价
用户头像
Hello, Before you select a part time developer from here, take a look at fugacode.com. If you like what you see, contact them. That's all. "Why hire freelancers? when you can hire professional developers for the same cost" - Top Ranked Freelancing developers are with fugacode now. But not as individual developers. But as an award winning team in one building. Just for you! Regards. PS: 100% money back guarantee will be provided and freelancer milestone system can be used.
$25 USD 在1天之内
4.7 (15条评论)
6.0
6.0
用户头像
A proposal has not yet been provided
$25 USD 在1天之内
0.0 (0条评论)
0.0
0.0

关于客户

SRI LANKA的国旗
Kotagala, Sri Lanka
5.0
2
付款方式已验证
会员自10月 9, 2011起

客户认证

谢谢!我们已通过电子邮件向您发送了索取免费积分的链接。
发送电子邮件时出现问题。请再试一次。
已注册用户 发布工作总数
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
加载预览
授予地理位置权限。
您的登录会话已过期而且您已经登出,请再次登录。