📄 stt_proto.cpp
字号:
#include "../win_and_sock.h"
#include "../buffers.h"
#include "../data.h"
#include "stt_proto.h"
#include <stdio.h>
#include "proto.h"
#include "ctt_proto.h" // for send_CLI_Redirect
#include "ttg_proto.h" // for send_dump
#include "../packet_db.h"
//#include "../bots/bot.h" // bot_parse_ctt
#define read_sb_POS2_at(buf,atp,x0,y0,x1,y1) { BYTE *__p = (BYTE*)((buf)->p + (buf)->rp + atp); x0 = (__p[0]<<2)+(__p[1]>>6); y0 = ((__p[1]&0x3f)<<4)+(__p[2]>>4); x1 = ((__p[2]&0x0f)<<6)+(__p[3]>>2); y1 = ((__p[3]&0x03)<<8)+__p[4];}
char stt_s[256];
int stt_block_packet;
// *** thread ***
int stt_parse()
{
int pc_len;
WORD pc_id;
int count_rbuf = count_rb(&stt);
if(st.state == STT_STATE_WF_ACCOUNTID)
{
if(count_rbuf<4) // 4=size of account_id
return 0;
pc_id = PC_STT_EXT_ACCOUNT_ID;
pc_len = 4;
}
else
{
if(count_rbuf<2) // 2=minimal size of a packet
return 0;
//物疱溴
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -