Skip to content

Commit

Permalink
a
Browse files Browse the repository at this point in the history
  • Loading branch information
Muhammad Zaman committed Mar 27, 2014
1 parent bcd5902 commit 871f0f7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion recive.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ int64_t nano_count()
}
int main(int argc, char **argv ){

int my_port = atoi(argv[0]);
int my_port = atoi(argv[1]);

int recvlen;
char* buf[10];
Expand Down
6 changes: 3 additions & 3 deletions send.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ int64_t nano_count()

int main(int argc, char **argv ){

char* host_addr = argv[2];
int host_port = atoi(argv[0]);
int num_packets = atoi(argv[1]);
char* host_addr = argv[3];
int host_port = atoi(argv[1]);
int num_packets = atoi(argv[2]);
cout<<host_port<<" port "<<host_addr<<" addr "<<num_packets<<" packets"<<endl;
int s;

Expand Down
8 changes: 4 additions & 4 deletions sendforeward.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ int64_t nano_count()

int main(int argc, char **argv ){

char* host_addr = argv[1];
int host_port = atoi(argv[0]);
int num_packets = atoi(argv[3]);
char* host_addr = argv[2];
int host_port = atoi(argv[1]);
int num_packets = atoi(argv[4]);

int my_port = atoi(argv[2]);
int my_port = atoi(argv[3]);

int recvlen;
char* buf[10];
Expand Down

0 comments on commit 871f0f7

Please sign in to comment.