blob: dd94a4558890d2a20a88f6ab99e47934addccf84 [file] [log] [blame]
Harald Welte4b233b42012-11-07 08:32:31 +01001
2/*
3 * Copyright (C) 2006 Raul Tremsal
4 * File : submit_sm_resp_test.c
5 * Author: Raul Tremsal <ultraismo@yahoo.com>
6 *
7 * This file is part of libsmpp34 (c-open-smpp3.4 library).
8 *
9 * The libsmpp34 library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Lesser General Public License as
11 * published by the Free Software Foundation; either version 2.1 of the
12 * License, or (at your option) any later version.
13 *
14 * This library is distributed in the hope that it will be useful, but
15 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
16 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
17 * License for more details.
18 *
19 * You should have received a copy of the GNU Lesser General Public License
20 * along with this library; if not, write to the Free Software Foundation,
21 * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22 *
23 */
24
25#include <stdio.h>
26#include <string.h>
27#include <sys/types.h>
28#include <netinet/in.h>
29
30#ifdef __linux__
31#include <stdint.h>
32#endif
33
34#include "smpp34.h"
35#include "smpp34_structs.h"
36#include "smpp34_params.h"
37#include "core.h"
38
39
40int
41main( int argc, char *argv[] )
42{
43
44 submit_sm_resp_t a;
45 submit_sm_resp_t b;
46
47 memset(&a, 0, sizeof(submit_sm_resp_t));
48 memset(&b, 0, sizeof(submit_sm_resp_t));
49
50 /* Init PDU ***********************************************************/
51 b.command_length = 0;
52 b.command_id = SUBMIT_SM_RESP;
53 b.command_status = ESME_ROK;
54 b.sequence_number = 1;
55 snprintf((char*)b.message_id, sizeof(b.message_id), "%s", "88898239379");
56
57 doTest(SUBMIT_SM_RESP, &a, &b);
58 return( 0 );
59};