📄 sgip
字号:
src="SGIP的delphi源码.files/msn.gif"
border=0></A> <A
href="http://skybird.9s9s.com/bbs/post.asp?method=edit&reply_id=3675&auth=576&forum_title=&topic_title=SGIP%B5%C4delphi%D4%B4%C2%EB&forum_id=7&topic_id=1129&page=1"><IMG
alt=编辑修改 src="SGIP的delphi源码.files/edit.gif" border=0></A> <A
href="http://skybird.9s9s.com/bbs/delreply.asp?reply_id=3675&topic_title=SGIP%B5%C4delphi%D4%B4%C2%EB&forum_id=7&forum_title=☆协议理解☆"><IMG
alt=删除回复 src="SGIP的delphi源码.files/del.gif" border=0></A> <A
href="http://skybird.9s9s.com/bbs/post.asp?forum_id=7&reply_id=3675&method=reply&type=quotereply&forum_title=%A1%EE%D0%AD%D2%E9%C0%ED%BD%E2%A1%EE&topic_id=1129&topic_title=SGIP%B5%C4delphi%D4%B4%C2%EB&M="><IMG
alt=引用回复 src="SGIP的delphi源码.files/quote.gif" border=0></A>
<HR class=sft noShade SIZE=1>
<BR><BR><BR> begin<BR> memo1.Lines.Add('**********************SGIP_DELIVER数据接收错误*******************');<BR> exit;<BR> end;<BR> RecvSize2:=0;RecvSize1:=0;<BR> cHead.CommandId:=htonl(SGIP_DELIVER_RESP);<BR> cHead.MessageLength:=htonl(sizeof(cHead)+sizeof(cDeliver_Resp));<BR> cDeliver_Resp.Result:=0;<BR> RecvSize1:=Socket.SendBuf(cHead,SizeOf(cHead));<BR> RecvSize2:=Socket.SendBuf(cDeliver_Resp,SizeOf(cDeliver_Resp));<BR> if
(RecvSize1+RecvSize2)<>ntohl(cHead.MessageLength)
then<BR> begin<BR> memo1.Lines.Add('**********************响应SGIP_DELIVER请求错误***********************');<BR> exit;<BR> end;<BR> end<BR> else<BR> if
commandI=SGIP_UNBIND
then<BR> begin<BR> cHead.CommandId:=htonl(SGIP_UNBIND_RESP);<BR> cHead.MessageLength:=htonl(sizeof(cHead));<BR> memo1.Lines.Add('响应SGIP_UNBIND***************************');<BR> RecvSize2:=Socket.SendBuf(cHead,sizeOf(cHead));<BR> if
RecvSize2<>ntohl(cHead.MessageLength)
then<BR> begin<BR> memo1.Lines.Add('**********************SGIP_UNBIND发送错误*****************');<BR> exit;<BR> end;<BR> end<BR> else<BR> begin<BR> end;<BR>end;<BR>end.<SPAN
class=sft><BR><BR>____________________<BR><BR>
<P align=right>第4篇</P></SPAN></TD></TR>
<TR>
<TD vAlign=top bgColor=#ffffff>
<TABLE class=sft style="FILTER: glow(color=#FFFFFF,strength=1)"
cellSpacing=0 cellPadding=3 width="100%" border=0>
<TBODY>
<TR>
<TD>dulcet99</TD></TR></TBODY></TABLE>头衔:侠客<BR>来自:山东<BR>发帖:53<BR>注册:2002年10月<BR><IMG
src="SGIP的delphi源码.files/24.gif"></IMG></TD>
<TD vAlign=top bgColor=#ffffff>发表于: 2002-11-1 20:40:27 <A
href="javascript:openWindow('viewuser.asp?name=dulcet99')"><IMG alt=查看作者档案
src="SGIP的delphi源码.files/profile.gif" border=0></A> <A
href="mailto:dulcet99@163.com"><IMG alt=给作者发电子邮件
src="SGIP的delphi源码.files/email.gif" border=0></A> <A
href="javascript:openWindow('%20')"><IMG alt=访问作者主页
src="SGIP的delphi源码.files/homepage.gif" border=0></A> <A
href="javascript:openWindow('viewip.asp?reply_id=3676')"><IMG alt=查看IP地址
src="SGIP的delphi源码.files/ip.gif" border=0></A> <A
href="javascript:openWindow('http://search.tencent.com/cgi-bin/friend/user_show_info?ln=35079175')"><IMG
alt=QQ号码:35079175 src="SGIP的delphi源码.files/qq.gif"
border=0></A> <IMG alt="MSN号码: "
src="SGIP的delphi源码.files/msn.gif"
border=0></A> <A
href="http://skybird.9s9s.com/bbs/post.asp?method=edit&reply_id=3676&auth=576&forum_title=&topic_title=SGIP%B5%C4delphi%D4%B4%C2%EB&forum_id=7&topic_id=1129&page=1"><IMG
alt=编辑修改 src="SGIP的delphi源码.files/edit.gif" border=0></A> <A
href="http://skybird.9s9s.com/bbs/delreply.asp?reply_id=3676&topic_title=SGIP%B5%C4delphi%D4%B4%C2%EB&forum_id=7&forum_title=☆协议理解☆"><IMG
alt=删除回复 src="SGIP的delphi源码.files/del.gif" border=0></A> <A
href="http://skybird.9s9s.com/bbs/post.asp?forum_id=7&reply_id=3676&method=reply&type=quotereply&forum_title=%A1%EE%D0%AD%D2%E9%C0%ED%BD%E2%A1%EE&topic_id=1129&topic_title=SGIP%B5%C4delphi%D4%B4%C2%EB&M="><IMG
alt=引用回复 src="SGIP的delphi源码.files/quote.gif" border=0></A>
<HR class=sft noShade SIZE=1>
<BR><BR>//..............................................................<BR>//协议<BR>unit
xy;
<P></P>
<P>interface<BR>uses<BR> SysUtils;<BR>const
<BR> SGIP_BIND
=$1; //对客户端验证<BR> SGIP_BIND_RESP
=$80000001; //服务端返回验证请求<BR> SGIP_UNBIND
=$2; //断开连接<BR> SGIP_UNBIND_RESP =$80000002;
//返回断开连接状态<BR> SGIP_SUBMIT
=$3; //向SMG提交MT短消息<BR> SGIP_SUBMIT_RESP =$80000003;
//返回SP提交MT短消息状态<BR> SGIP_DELIVER
=$4; //SMG向SP发送一条MO短消息<BR> SGIP_DELIVER_RESP
=$80000004; //返回SMG状态<BR> SGIP_REPORT
=$5; //向SP发送一条先前的submit命令的当前状态<BR> SGIP_REPORT_RESP
=$80000005;
//响应SMG状态<BR> //以下协议对SP无用<BR> SGIP_ADDSP
=$6; //<BR> SGIP_ADDSP_RESP
=$80000006; //<BR> SGIP_MODIFYSP
=$7; //<BR> SGIP_MODIFYSP_RESP
=$80000007; //<BR> SGIP_DELETESP
=$8; //<BR> SGIP_DELETESP_RESP
=$80000008; //<BR> SGIP_QUERYROUTE
=$9; //<BR> SGIP_QUERYROUTE_RESP
=$80000009; //<BR> SGIP_ADDTELESEG
=$a; //<BR> SGIP_ADDTELESEG_RESP
=$8000000a; //<BR> SGIP_MODIFYTELESEG
=$b; //<BR> SGIP_MODIFYTELESEG_RESP
=$8000000b; //<BR> SGIP_DELETETELESEG
=$c; //<BR> SGIP_DELETETELESEG_RESP
=$8000000c; //<BR> SGIP_ADDSMG
=$d; //<BR> SGIP_ADDSMG_RESP
=$8000000d; //<BR> SGIP_MODIFYSMG
=$e; //<BR> SGIP_MODIFYSMG_RESP
=$0000000e; //<BR> SGIP_DELETESMG
=$f; //<BR> SGIP_DELETESMG_RESP
=$8000000f; //<BR> SGIP_CHECKUSER
=$10;
//<BR> SGIP_CHECKUSER_RESP =$80000010;
//<BR> SGIP_USERRPT
=$11;
//<BR> SGIP_USERRPT_RESP =$80000011;
//<BR> SGIP_TRACE
=$1000;
//<BR> SGIP_TRACE_RESP =$80001000;
//<BR>type<BR> TEMPTY=Record
//空纪录<BR> end;<BR> //消息头<BR> SGIPHead=Record<BR> MessageLength
:longword; //消息的总长度(字节)<BR> CommandId
:longword; //命令ID<BR> SNumber1,SNumber2,SNumber3:longword; //序列号<BR> end;<BR> //消息体<BR> XBind=Record //<BR> LonginType :byte;<BR> LonginPass :array[0..15]
of
char;<BR> LonginName :array[0..15]
of
char;<BR> Reserve
:array[0..7] of
char;<BR> end;<BR> Bind_Resp=Record<BR> Result :byte;<BR> Reserve
:array[0..7] of
char;<BR> end;<BR> //<BR> Unbind=TEMPTY;<BR> Unbind_Resp=TEMPTY;<BR> //<BR> TelCount=record
//手机号码<BR> TelN :array[0..20] of
char;<BR> end;<BR> XSubmit=Record<BR> SPNumber :array[0..20]
of
char;<BR> ChargeNumber :array[0..20]
of
char;<BR> UserCount
:byte;
//1-100<BR> UserNumber :array[0..20]
of
char;//TelCount; //长度为UserCount<BR> CorpID :array[0..4]
of
char;<BR> ServiceType
:array[0..9] of
char;<BR> FeeType
:byte;<BR> FeeValue :array[0..5]
of
char;<BR> GivenValue :array[0..5]
of
char;<BR> AgentFlag
:byte;<BR> MOrelatetoMTFlag :byte;<BR> Priority :byte;<BR> ExpireTime :array[0..15]
of
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -