📄 ylfdrcmppsock.h
字号:
// ylfDRCMPPSock.h: interface for the ylfDRCMPPSock class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_YLFDRCMPPSOCK_H__9BBAF5B3_1A85_4E42_92D1_A1D60A192C3F__INCLUDED_)
#define AFX_YLFDRCMPPSOCK_H__9BBAF5B3_1A85_4E42_92D1_A1D60A192C3F__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class ylfDRCMPPSock : public CSmsSock
{
public:
char host[16];
unsigned short port;
char icp_id[7];
char icp_ps[32];
public:
char msg[160];
dpl_uint8_t msg_mode;
dpl_uint8_t dcs;
char src_usr[20];
char dst_usr[20];
char svc_type[10];
dpl_uint8_t fee_type;
dpl_uint32_t info_fee;
dpl_uint8_t fee_utype;
char fee_usr[20];
public:
dpl_status_t stat;
conn_desc conn;
cmppe_submit cs;
cmppe_login cl;
cmppe_packet cp;
dpl_uint32_t user_seq;
int status;
int type;
int result;
int seq;
public:
ylfDRCMPPSock();
virtual ~ylfDRCMPPSock();
public:
static UINT ServerThreadProc(LPVOID pParam);
bool BeginThread();
int fDisconnect();
int fConnect(char* host,unsigned int port);
int fAliveTst(BOOL bResp=FALSE);
int fLogout(bool bResp=FALSE);
int fLogin(char* usrname,char* passwd);
int fSendSM(char* destaddr,char* srcaddr,char* sendmsg,bool bResp=FALSE);
public:
void ReadClearBuf();
void ReadConfig(char *file, char* title, char* token, char* value);
void system_init();
dpl_status_t login_value_set(cmppe_login *cl);
dpl_status_t submit_value_set(cmppe_submit *cs);
};
#endif // !defined(AFX_YLFDRCMPPSOCK_H__9BBAF5B3_1A85_4E42_92D1_A1D60A192C3F__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -