FreeCalypso > hg > themwi-system-sw
diff smpp-trx-sa/main.c @ 263:1bf989f60aa3
smpp-trx-sa: log times of enquire_link packets
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Wed, 11 Oct 2023 21:22:32 -0800 |
parents | a375639e4190 |
children |
line wrap: on
line diff
--- a/smpp-trx-sa/main.c Wed Oct 11 21:21:34 2023 -0800 +++ b/smpp-trx-sa/main.c Wed Oct 11 21:22:32 2023 -0800 @@ -42,9 +42,9 @@ fd_set fds; int max_fd, rc; - if (argc != 6) { + if (argc < 6 || argc > 7) { fprintf(stderr, - "usage: %s server-ip system-id password log-file socket-pathname\n", +"usage: %s server-ip system-id password log-file socket-pathname [enq-link]\n", argv[0]); exit(1); } @@ -69,6 +69,8 @@ perror(argv[4]); exit(1); } + if (argv[6]) + log_enquire_link_open(argv[6]); create_local_socket(argv[5]); max_fd = localsock; open_tcp_conn(&server_sin);