Skip to content

Commit

Permalink
asd
Browse files Browse the repository at this point in the history
  • Loading branch information
Muhammad Zaman committed Mar 27, 2014
1 parent bfc385a commit c509dad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sendforeward.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ int main(int argc, char **argv ){

int64_t time_start;
int64_t time_end;
for(int i=0;i<num_packets*950;i++){
for(int i=0;;i++){
if ( (recvlen = recvfrom(s, buf, buf_size, 0, (struct sockaddr *)&remaddr, &addrlen) > 0)){
if (sendto(s, buf, recvlen, 0, (struct sockaddr *)&servaddr, sizeof(servaddr)) < 0){
cout<<"sendto failed"<<endl;
Expand Down
2 changes: 1 addition & 1 deletion sendrecive.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ int main(int argc, char **argv ){
int64_t time_start;
int64_t time_end;

for(int i=0;i<num_packets*950;i++){
for(int i=0;;i++){

time_start = nano_count();

Expand Down

0 comments on commit c509dad

Please sign in to comment.