Skip to content

Commit

Permalink
aaa
Browse files Browse the repository at this point in the history
  • Loading branch information
Muhammad Zaman committed Mar 24, 2014
1 parent bb6b513 commit 967db96
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion recive.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ int main(){
if(i==0)
time_start = nano_count();
recvfrom(s, buf, buf_size, 0, (struct sockaddr *)&remaddr, &addrlen);
if(i%1000 == 0){
if(i%10000 == 0){
int64_t time_end = nano_count();
cout<<"number of packets recived and forewarded "<< i <<endl;
cout<<"this took "<<time_end-time_start<<" nanoseconds"<<endl;
Expand Down
2 changes: 1 addition & 1 deletion send.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ int main(){

char* host_addr = "pc481.emulab.net";
int host_port = 54312;
int num_packets = 1000;
int num_packets = 10000;

int s;

Expand Down
4 changes: 2 additions & 2 deletions sendforeward.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ int main(){

char* host_addr = "pc477.emulab.net";
int host_port = 54312;
int num_packets = 1000;
int num_packets = 10000;

int my_port = 54312;

Expand Down Expand Up @@ -79,7 +79,7 @@ int main(){
return 0;
}
}
if(i%1000 == 0){
if(i%10000 == 0){
time_end = nano_count();
cout<<"number of packets recived and forewarded "<< i <<endl;
cout<<"this took "<<time_end-time_start<<" nanoseconds"<<endl;
Expand Down

0 comments on commit 967db96

Please sign in to comment.