- Timestamp:
- Jul 15, 2011, 5:31:24 PM (13 years ago)
- Location:
- icas_send
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
icas_send/icas_recv.c
r246 r247 9 9 #include <unistd.h> 10 10 #include <netinet/in.h> 11 #include <time.h> 11 12 12 13 void Die(char *mess) … … 27 28 { 28 29 fprintf(stderr, "USAGE: %s <RECV_PORT>\n", argv[0]); 30 fprintf(stderr, "Ex: %s 3838\n", argv[0]); 29 31 exit(1); 30 32 } -
icas_send/icas_send.c
r246 r247 26 26 ssize_t read; 27 27 28 if (argc <= 2)28 if (argc <= 3) 29 29 { 30 fprintf(stderr, "USAGE: %s <RECV_IP> <RECV_PORT>\n", argv[0]); 30 fprintf(stderr, "USAGE: %s <RECV_IP> <RECV_PORT> <BLACK LIST FILE PATH>\n", argv[0]); 31 fprintf(stderr, "Ex. %s 127.0.0.1 3838 /opt/icas/report/black/blacklist\n", argv[0]); 31 32 exit(1); 32 33 } 33 34 34 35 /* open blacklist to read black list data */ 35 fd = fopen( "blacklist","r");36 fd = fopen(argv[3],"r"); 36 37 if (fd == NULL) 37 38 {
Note: See TracChangeset
for help on using the changeset viewer.