comparison smpp-send/main.c @ 223:f11c3e40c87a

new program smpp-send
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 05 Aug 2023 12:24:31 -0800
parents
children
comparison
equal deleted inserted replaced
222:9d6e8d99d2b1 223:f11c3e40c87a
1 /*
2 * This C file is the main module for smpp-send test program.
3 */
4
5 #include <sys/types.h>
6 #include <stdio.h>
7 #include <stdlib.h>
8
9 char *trx_socket;
10
11 char src_addr[21], dest_addr[21];
12 u_char src_ton = 1, src_npi = 1, dest_ton = 1, dest_npi = 1;
13 u_char esm_class, pid_byte, dcs_byte;
14 u_char prio_flag, reg_deliv, replace_flag;
15
16 char input_line[512];
17 int input_lineno;
18
19 main(argc, argv)
20 char **argv;
21 {
22 if (argc > 2) {
23 fprintf(stderr, "usage: %s [trx-local-socket]\n", argv[0]);
24 exit(1);
25 }
26 if (argc > 1)
27 trx_socket = argv[1];
28 for (input_lineno = 1; fgets(input_line, sizeof input_line, stdin);
29 input_lineno++)
30 process_input_line();
31 exit(0);
32 }