FreeCalypso > hg > themwi-system-sw
comparison utils/smpp-test1.c @ 219:9ba474e918c0
smpp-test1: try sending some ID strings
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Tue, 01 Aug 2023 22:56:52 -0800 |
parents | 211a043a385f |
children | c798a1762c7c |
comparison
equal
deleted
inserted
replaced
218:211a043a385f | 219:9ba474e918c0 |
---|---|
13 #include <string.h> | 13 #include <string.h> |
14 #include <strings.h> | 14 #include <strings.h> |
15 #include <unistd.h> | 15 #include <unistd.h> |
16 | 16 |
17 static const u_char bind_req[] = { | 17 static const u_char bind_req[] = { |
18 0x00, 0x00, 0x00, 0x17, /* command_length */ | 18 0x00, 0x00, 0x00, 0x23, /* command_length */ |
19 0x00, 0x00, 0x00, 0x09, /* command_id: bind_transceiver */ | 19 0x00, 0x00, 0x00, 0x09, /* command_id: bind_transceiver */ |
20 0x00, 0x00, 0x00, 0x00, /* command_status */ | 20 0x00, 0x00, 0x00, 0x00, /* command_status */ |
21 0x00, 0x00, 0x00, 0x00, /* sequence_number */ | 21 0x00, 0x00, 0x00, 0x01, /* sequence_number */ |
22 0, 0, 0, /* empty strings */ | 22 'G','S','M','-','S','M','S','C',0, /* system_id */ |
23 0, /* password: empty string */ | |
24 'S','M','P','P',0, /* system_type */ | |
23 0x34, /* interface_version */ | 25 0x34, /* interface_version */ |
24 0, 0, 0 /* empty address params */ | 26 0, 0, 0 /* empty address params */ |
25 }; | 27 }; |
26 | 28 |
27 static int tcpsock; | 29 static int tcpsock; |