Find Jobs
Hire Freelancers

A swap program

$10-30 USD

Fechado
Publicado há mais de 3 anos

$10-30 USD

Pago na entrega
you only need to design and implement the SWAP functions swap_read() and swap_write(). All the other SWAP functions are provided for you in the source files swap_client.c and swap_server.c. SDP is already completely implemented in sdp.c, and a checksum function is provided in checksum.c. The source modules supplied for Part 3 of the project will compile and run, but the program functionality is incomplete. To complete these programs, you should implement the following requirements: Complete the function swap_write() found in the file swap_client.c. Complete the function swap_read() found in the file swap_server.c. Implement error checking for DATA frames as well as ACK frames to provide reliable communications. Use the checksum() function found in the file checksum.c for error checking. This file is posted in the zip file attached below. Add additional print statements to your code to provide information about what the client and server programs are doing when they run. Test your SWAP client and server using the files test_swap_client.c and test_swap_server.c that are provided in the attached zip file below. Note The sender should send one frame at a time and wait for an acknowledgement before the next frame is sent. Compile and Run the SWAP Client and Server Programs You will need to test your programs on two terminals, one terminal for the server and another terminal for the client. The port number and IP address for the client should be specified as command line arguments. # Compile the SWAP server program $ gcc test_swap_server.c swap_server.c sdp.c checksum.c -o test_swap_server # Run the SWAP server program from the command line; specify the port number ./test_swap_server 8899 # Compile the SWAP client program $ gcc test_swap_client.c swap_client.c sdp.c checksum.c -o test_swap_client # Run the client program from the command line; specify the IP address and port number ./test_swap_client [login to view URL] 8899 If there are no errors in your implementation of SWAP, then swap_server will print the message sent from swap_client. Project Submission Your submission for Part 3 of the project should include six files: The updated source code for swap_client.c The updated source code for test_swap_client.c The updated source code for swap_server.c The updated source code for test_swap_server.c A screen shot of the running SWAP client program A screen shot of the running SWAP echo server program
ID do Projeto: 27755702

Sobre o projeto

2 propostas
Projeto remoto
Ativo há 3 anos

Quer ganhar algum dinheiro?

Benefícios de ofertar no Freelancer

Defina seu orçamento e seu prazo
Seja pago pelo seu trabalho
Descreva sua proposta
É grátis para se inscrever e fazer ofertas em trabalhos
2 freelancers estão ofertando em média $30 USD for esse trabalho
Avatar do Usuário
Hello there, I'll implement your swap functions in C. Please message me so we can start. Best regards.
$30 USD em 3 dias
4,9 (6 avaliações)
2,4
2,4
Avatar do Usuário
Hi there, I can implement the read and write functions for the socket in your SWAP server implementation. I can properly setup the SYN-ACK-SYN cycle so there is low latency between frames. All incoming frame will generate a log on stdout on server. All outgoing frame from client and ACKed frames will be logged on stdout. Share the rest of the files for the swap implementation (I did not find an attachment with the project description) and I can get started. Thanks for your time and consideration.
$30 USD em 1 dia
5,0 (3 avaliações)
1,8
1,8

Sobre o cliente

Bandeira do(a) INDIA
Pune, India
5,0
6
Método de pagamento verificado
Membro desde ago. 13, 2020

Verificação do Cliente

Obrigado! Te enviamos um link por e-mail para que você possa reivindicar seu crédito gratuito.
Algo deu errado ao enviar seu e-mail. Por favor, tente novamente.
Usuários Registrados Total de Trabalhos Publicados
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Carregando pré-visualização
Permissão concedida para Geolocalização.
Sua sessão expirou e você foi desconectado. Por favor, faça login novamente.