资源简介
smppapi-0.3.9.rar
代码片段和文件信息
/*
* Java SMPP API
* Copyright (C) 1998 - 2002 by Oran Kelly
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not write to the Free Software
* Foundation Inc. 59 Temple Place Suite 330 Boston MA 02111-1307 USA
*
* A copy of the LGPL can be viewed at http://www.gnu.org/copyleft/lesser.html
* Java SMPP API author: orank@users.sf.net
* Java SMPP API Homepage: http://smppapi.sourceforge.net/
*
* $Id: stress_recv.c 242 2005-11-14 20:37:19Z orank $
*
*
* stress_recv.c: A simple program to dump a hell of a load of deliver_sm
* messages to a receiver program. Use is pretty straightforward: simply run
* this program from the command line. It sets up a server socket and listens
* for a connection...run your receiver to bind to this program‘s IP/port. If
* the first packet received isn‘t a bind_receiver the program just exits. Once
* the receiver connection is established stress_recv starts sending deliver_sm
* packets to the receiver...the destination address and message text are
* randomly generated the rest remains static (except for incrementing sequence
* numbers). The server will count the number of deliver_sm_resp messages it
* gets back and provides a simple report upon completion. Once all the
* deliver_sm‘s have been sent the server sends an unbind request to the client
* to close the connection.
* Author: Oran Kelly (orank@users.sf.net)
*/
#include
#include
#include
#include
#include
#include
#include
#include
#include “stress_recv.h“
pthread_t sender_thread;
pthread_t recv_thread;
pthread_mutex_t write_lock = PTHREAD_MUTEX_INITIALIZER;
int unbinding = 0;
void *deliver_msgs(void *arg);
void *dump_incoming(void *arg);
void make_random_msg(unsigned char *len char *buf);
void make_random_dest(char *dest);
void *dump_incoming(void *arg);
int read_smpp_packet(int sock char *buf int *buf_size);
void make_bind_receiver(char *buf bind_receiver *r);
void make_deliver_sm(char *buf deliver_sm *d);
void usage(int argc char *argv[]);
/*
* Stucture for arguments to send to the deliver_msgs function.
*/
struct thread_args1
{
int sock;
uint32_t msg_count;
};
int main(int argc char *argv[])
{
int server_sock = -1 sock = -1;
uint32_t msg_count = DEFAULT_MSG_COUNT;
int pak_size = 512 i;
int listen_port = DEFAULT_LISTEN_PORT;
char
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 16384 2009-06-17 03:28 smppapi-0.3.9\.build.xm
文件 387 2009-06-17 03:26 smppapi-0.3.9\.checkst
文件 664 2009-06-17 03:26 smppapi-0.3.9\.classpath
文件 24576 2009-06-17 03:55 smppapi-0.3.9\.pom.xm
文件 366 2009-06-17 03:26 smppapi-0.3.9\.project
文件 620 2009-06-17 03:26 smppapi-0.3.9\.settings\org.eclipse.jdt.core.prefs
文件 11558 2009-06-17 03:26 smppapi-0.3.9\apache-licence.txt
文件 2719 2012-06-12 09:19 smppapi-0.3.9\build\classes\ie\omk\smpp\Address.class
文件 531 2012-06-12 09:19 smppapi-0.3.9\build\classes\ie\omk\smpp\AlreadyBoundException.class
文件 1025 2012-06-12 09:19 smppapi-0.3.9\build\classes\ie\omk\smpp\BadCommandIDException.class
文件 24923 2012-06-12 09:19 smppapi-0.3.9\build\classes\ie\omk\smpp\Connection.class
文件 1452 2012-06-12 09:19 smppapi-0.3.9\build\classes\ie\omk\smpp\ErrorAddress.class
文件 298 2012-06-12 09:19 smppapi-0.3.9\build\classes\ie\omk\smpp\event\ConnectionObserver.class
文件 466 2012-06-12 09:19 smppapi-0.3.9\build\classes\ie\omk\smpp\event\EventDispatcher.class
文件 1762 2012-06-12 09:19 smppapi-0.3.9\build\classes\ie\omk\smpp\event\FIFOQueue.class
文件 1519 2012-06-12 09:19 smppapi-0.3.9\build\classes\ie\omk\smpp\event\NotificationDetails.class
文件 91 2009-06-17 03:26 smppapi-0.3.9\build\classes\ie\omk\smpp\event\package.html
文件 821 2012-06-12 09:19 smppapi-0.3.9\build\classes\ie\omk\smpp\event\QueueFullException.class
文件 938 2012-06-12 09:19 smppapi-0.3.9\build\classes\ie\omk\smpp\event\ReceiverExceptionEvent.class
文件 1619 2012-06-12 09:19 smppapi-0.3.9\build\classes\ie\omk\smpp\event\ReceiverExitEvent.class
文件 433 2012-06-12 09:19 smppapi-0.3.9\build\classes\ie\omk\smpp\event\ReceiverStartEvent.class
文件 4689 2012-06-12 09:19 smppapi-0.3.9\build\classes\ie\omk\smpp\event\SimpleEventDispatcher.class
文件 756 2012-06-12 09:19 smppapi-0.3.9\build\classes\ie\omk\smpp\event\SMPPEvent.class
文件 6576 2012-06-12 09:19 smppapi-0.3.9\build\classes\ie\omk\smpp\event\SMPPEventAdapter.class
文件 7260 2012-06-12 09:19 smppapi-0.3.9\build\classes\ie\omk\smpp\event\ThreadedEventDispatcher.class
文件 536 2012-06-12 09:19 smppapi-0.3.9\build\classes\ie\omk\smpp\InvalidOperationException.class
文件 1379 2012-06-12 09:19 smppapi-0.3.9\build\classes\ie\omk\smpp\message\AlertNotification.class
文件 3927 2012-06-12 09:19 smppapi-0.3.9\build\classes\ie\omk\smpp\message\Bind.class
文件 433 2012-06-12 09:19 smppapi-0.3.9\build\classes\ie\omk\smpp\message\BindReceiver.class
文件 722 2012-06-12 09:19 smppapi-0.3.9\build\classes\ie\omk\smpp\message\BindReceiverResp.class
............此处省略822个文件信息
相关资源
- ex4_to_mq4_freeware(真正有用的破解程序
- EasyBuy.rar115487
-
new_one_ob
ject_9563362.zip - c本质论(第4版)源代码.tar
- 2.5.zip
- 微擎-万能表单7.0.1dayu_form修改版-201
- 小波与傅里叶分析基础(英文版)
- mcf6.rar
- 自动化专业英语教程翻译PART3.rar
- adb4.4.2.rar
- LifeChangerEA.zip
- windump.rar
- doc(9)
- 各种MQkafkathrift等rpc框架.zip
- NestProfessor套料软件加强版.zip
- easybuy.rar
- evernote2blog.zip
- count_24.rar
- SDFAWDFSA.rar
- H-ui_v3.1.zip
- 凸分析.pdf
- SP百度云不限速插件.zip
- rhk4u6.rar
- procyon-decompiler-0.5.30.zip
- preview_rgb24.rar
- 20110610162910c调用demo.rar
- Windows和office2016正式版激活绿色版.r
- MINGHUE-CSDN留言源码.rar
- 2DDynamicLightsandShadows-2DDLPROv1.4.3.unityp
- fg768p.rar
评论
共有 条评论