鱼C论坛

 找回密码
 立即注册
查看: 3187|回复: 3

大大门请教下,下面的汇编语句什么意思,可以译成C++吗

[复制链接]
发表于 2011-3-10 22:19:33 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能^_^

您需要 登录 才可以下载或查看,没有账号?立即注册

x
push    dword ptr [esp+C]                ; /Flags
    push    dword ptr [esp+C]                ; |BufSize
   push    dword ptr [esp+C]                ; |Buffer
   push    dword ptr [ecx+4]                ; |Socket
  call    <jmp.&WSOCK32.#16>               ; \recv
  retn    0C
   push    dword ptr [esp+C]                ; /Flags
    push    dword ptr [esp+C]                ; |DataSize
  push    dword ptr [esp+C]                ; |Data
    push    dword ptr [ecx+4]                ; |Socket
   call    <jmp.&WSOCK32.#19>               ; \send
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
发表于 2011-3-11 00:10:42 | 显示全部楼层
很明显是带4个参数的子程序调用。
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
 楼主| 发表于 2011-3-12 13:02:53 | 显示全部楼层
是不是4个参数就是封包的长度内容,<jmp.&WSOCK32.#16>  这个就是子程序,找到子程序里应该包含解密算法吧?
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
发表于 2011-3-15 20:35:31 | 显示全部楼层
本帖最后由 仓小姐 于 2011-3-15 20:55 编辑

这是2个基于套接字(Sockets)网络编程的API
需要头文件 Winsock2.h
需要动态链接库 Ws2_32.lib

函数原型如下:
int recv(
  SOCKET s,      
  char FAR *buf,  
  int len,        
  int flags      
);

int send(
  SOCKET s,              
  const char FAR *buf,  
  int len,               
  int flags              
);

4个参数相同:1.套接字(必须已经初始化过) 2.接收/发送数据的缓冲区 3.缓冲区长度 4.调用方式

MSDN原文:
s
[in] Descriptor identifying a connected socket.
buf
[in] Buffer containing the data to be transmitted.
len
[in] Length of the data in buf.
flags
[in] Indicator specifying the way in which the call is made.


.
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|手机版|Archiver|鱼C工作室 ( 粤ICP备18085999号-1 | 粤公网安备 44051102000585号)

GMT+8, 2024-4-27 12:32

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表