Closed

Network Programming with C++

This project received 7 bids from talented freelancers with an average bid price of $173 USD.

Get free quotes for a project like this
Employer working
Skills Required
Project Budget
N/A
Total Bids
7
Project Description

Following are the details of this Project also there are attached files like
ppt file rar file,pdf file and word file which is complete details of the project


Power point file : (Slide 35) explain the RIP protocol and how it send the request to other node

RAR file : CODE for transmission and sending request between the 3 nodes ...

PDF file : Project to be done by me .... and its mention all needed ........

MS-Word file : these will help you to implement the project



What is need from you ?

- to develop socket C++ code for transmission between 4 nodes and it must be use ( BEER to BEER) as it is " UDB "

- After sending the transmission between , we will recognize the neighbor connected with each other by sending request and format i.e function which is attached (MS-WORD file)

- After Recognizing for the neighbor connected , they start routing table for each node , and it means its save the routing table per each nodes with their addresses and request , as the value will be "1" ...

- After that , each nodes implement for his node one routing table ,it starts every 30 second , it automatically transmits the routing table per each node among them ,.......... These what we called RIP ( for more details , check slide 35 (PowerPoint file) )

- As in slide 35 , there will be interface , we will not do interface as we don't have interface values ,,, (we will do instead of interface neighbor ports )


Note :

Need only one machine to implement the above project ..............


the below code will help too much too write the code .... check this !




code client

#ifdef HAVE_CONFIG_H
#include
#endif

#include
#include
#include
#include
#include
#include
#include


/// CLIENT


int main(int argc, char *argv[])
{
printf("This is the client program\n");

int sockfd;
int len, rc ;
struct sockaddr_in address;
int result;
char ch = 'A';

//Create socket for client.
sockfd = socket(PF_INET, SOCK_STREAM, 0);
if (sockfd == -1) {
perror("Socket create failed.\n") ;
return -1 ;
}

//Name the socket as agreed with server.
address.sin_family = AF_INET;
address.sin_addr.s_addr = inet_addr("127.0.0.1");
address.sin_port = htons(7734);
len = sizeof(address);

result = connect(sockfd, (struct sockaddr *)&address, len);
if(result == -1)
{
perror("Error has occurred");
exit(-1);
}

while ( ch < 'Y') {

//Read and write via sockfd
rc = write(sockfd, &ch, 1);
printf("write rc = %d\n", rc ) ;
if (rc == -1) break ;

Looking to make some money?

  • Set your budget and the timeframe
  • Outline your proposal
  • Get paid for your work

Hire Freelancers who also bid on this project

    • Forbes
    • The New York Times
    • Time
    • Wall Street Journal
    • Times Online