Harald Welte | 4b233b4 | 2012-11-07 08:32:31 +0100 | [diff] [blame^] | 1 | |
| 2 | /* |
| 3 | * Copyright (C) 2006 Raul Tremsal |
| 4 | * File : unbind_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 | int |
| 40 | main( int argc, char *argv[] ) |
| 41 | { |
| 42 | |
| 43 | unbind_t a; |
| 44 | unbind_t b; |
| 45 | |
| 46 | memset(&a, 0, sizeof(unbind_t)); |
| 47 | memset(&b, 0, sizeof(unbind_t)); |
| 48 | |
| 49 | /* Init PDU ***********************************************************/ |
| 50 | b.command_length = 0; |
| 51 | b.command_id = UNBIND; |
| 52 | b.command_status = ESME_ROK; |
| 53 | b.sequence_number = 1; |
| 54 | |
| 55 | doTest(UNBIND, &a, &b); |
| 56 | return( 0 ); |
| 57 | }; |