Find Jobs
Hire Freelancers

programming

$10-30 USD

Lukket
Slået op cirka 8 år siden

$10-30 USD

Betales ved levering
Description: Please implement following : Initial client socket setup/connect to the server. Your client should take ip address and port on the command line. Once logged in, it should wait for user input. If input is rls ... it should be sent to server and wait for result. Once the result arrives, print it n the screen. Similarly implement get, put and quit. Refer to [login to view URL] document in handout section. SERVER PROGRAM: Client The client will start with taking commandline arguments for server's IP address and port number. Once the connection is successful, the client will provide console like prompt taking commands from the the server. Example: $ ./client [login to view URL] 4300 Connecting .... > > rls -rwxrwxr-x 1 irfan irfan 65 Oct 5 20:32 [login to view URL]~ -rw-rw-r-- 1 irfan irfan 54 Oct 28 20:09 [login to view URL] -rw-rw-r-- 1 irfan irfan 55 Oct 28 20:04 [login to view URL]~ -rwxrwxr-x 1 irfan irfan 789 Oct 28 20:14 [login to view URL] -rwxrwxr-x 1 irfan irfan 614 Oct 28 20:12 [login to view URL]~ -rw-rw-r-- 1 irfan irfan 35 Jan 9 15:16 [login to view URL] drwxr-xr-x 2 irfan irfan 4096 Feb 14 13:09 Pictures drwxr-xr-x 2 irfan irfan 4096 Sep 15 2015 Public -rwxrwxr-x 1 irfan irfan 789 Oct 28 20:19 [login to view URL] -rwxrwxr-x 1 irfan irfan 279 Oct 28 20:59 [login to view URL] lrwxrwxrwx 1 irfan irfan 5 Feb 21 12:48 [login to view URL] -> [login to view URL] -rw-rw-r-- 1 irfan irfan 215 Sep 21 20:40 [login to view URL] drwxr-xr-x 2 irfan irfan 4096 Sep 15 2015 Templates -rw-rw-r-- 1 irfan irfan 51 Oct 5 20:46 [login to view URL] -rw-rw-r-- 1 irfan irfan 418 Dec 22 04:40 [login to view URL] -rwxrwxr-x 1 irfan irfan 156 Oct 24 22:23 [login to view URL] > get [login to view URL] Transfer completed! > _ Following commands are implemented in the server. 1. rls (Remote listing of files) 2. get (copy the file from remote server to the client) 3. put (Copy file from client to server) 4. quit (terminate client and server connection) 1. rls command processing steps. 1. User sends rls to the server. 2. Server sends back length:data The returned buffer holds length as ascii numbers as 1024 and rest of listing text. Client has to start reading the socket buffer until it hits ':' character. The number before ':' represents the rest of the socket buffer in bytes. Client has to allocate memory using malloc() and read in rest of the buffer. Once all the buffer is read, use printf() function the display the read buffer. 2. get command processing steps. 1. get:file Client sends get:{filename} to the server to get a particular file to the client. Get pratically a copy command rather than a move command. {filename} can be replaced with any valid file which user got in the rls command. If the file is not there, the server will send NULL back to client. If the file exists, the server will send back file size:file data 3. put command processing steps. 1. put:filename:size:data The client will form the put command as put:filename:filesize:file data Keep in mind that we are only dealing with text files. the protocol will not handle binary files.
Projekt-ID: 10291898

Om projektet

5 forslag
Projekt på afstand
Aktiv 8 år siden

Leder du efter muligheder for at tjene penge?

Fordele ved budafgivning på Freelancer

Fastsæt dit budget og din tidsramme
Bliv betalt for dit arbejde
Oprids dit forslag
Det er gratis at skrive sig op og byde på jobs
5 freelancere byder i gennemsnit $74 USD på dette job
Brug Avatar.
Thanks for your project. I have 30 years experience programming in C, including many examples of client/server applications using TCP sockets on Linux. I will complete this client and server as described in your posting. A milestone payment for the full budget for this project must be deposited with this site before your offer can be accepted. Alan Idler Chief Software Architect Idleswell Software Creations
$93 USD på 3 dage
4,8 (56 anmeldelser)
5,0
5,0
Brug Avatar.
Hello, Please come to chat room for further discussion. This is Rajeev Achra, I have spent more than 11 years in the industry of Information Technology (IT). I have worked with various brands of India, Canada, Australia, Ukraine and USA in my career history. My expertise Includes Action Script, PHP, MYSQL, JavaScript, Jquery, Android, IOS, and indeed knowledge of wordpress, magento, drupal, os commerce etc and mobile applications as well. So I am sure I will deliver your job in minimum of time period with better quality. Thanks Rajeev
$100 USD på 1 dag
5,0 (1 bedømmelse)
2,2
2,2
Brug Avatar.
Hi, My name is Bhaskara Rao and I completed my gradution from Osmania University,Hyderabad,India. I have total 12yrs Experience in IT Field Total Linux Experience is 5yrs Total AIX Experience is 7yrs Skills: Redhat,Ubuntu,windows, IBM AIX, Clusters,Lpars,DLPARS,VIO I provide Systems Administration services for Linux and UNIX based servers Thanks, Regards, Bhaskar
$25 USD på 1 dag
0,0 (0 anmeldelser)
0,0
0,0
Brug Avatar.
hi I have just completed a similar project . It also involved client-server architecture but was a little more complex. Atul
$100 USD på 7 dage
0,0 (0 anmeldelser)
0,0
0,0

Om klienten

Flag for UNITED STATES
fremont, United States
5,0
3
Betalingsmetode verificeret
Medlem siden apr. 15, 2016

Klientverificering

Tak! Vi har sendt dig en e-mail med et link, så du kan modtage din kredit.
Noget gik galt, da vi forsøgte at sende din mail. Prøv venligst igen.
Registrerede brugere Oprettede jobs i alt
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Indlæser forhåndsvisning
Geolokalisering er tilladt.
Din session er udløbet, og du er blevet logget ud. Log venligst ind igen.