Changeset 247 for icas_send


Ignore:
Timestamp:
Jul 15, 2011, 5:31:24 PM (13 years ago)
Author:
jazz
Message:
  • modified icas_send.c
    • add path of blacklist
  • modified icas_recv.c
    • add usage example
Location:
icas_send
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • icas_send/icas_recv.c

    r246 r247  
    99#include <unistd.h>
    1010#include <netinet/in.h>
     11#include <time.h>
    1112
    1213void Die(char *mess)
     
    2728    {
    2829  fprintf(stderr, "USAGE: %s <RECV_PORT>\n", argv[0]);
     30  fprintf(stderr, "Ex: %s 3838\n", argv[0]);
    2931  exit(1);
    3032    }
  • icas_send/icas_send.c

    r246 r247  
    2626    ssize_t read;
    2727
    28     if (argc <= 2)
     28    if (argc <= 3)
    2929    {
    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]);
    3132  exit(1);
    3233    }
    3334
    3435    /* open blacklist to read black list data */
    35     fd = fopen("blacklist","r");
     36    fd = fopen(argv[3],"r");
    3637    if (fd == NULL)
    3738    {
Note: See TracChangeset for help on using the changeset viewer.