recv的四个参数我看代码的时候有这样写的recv(sConnect, szpRecvBuf + lFinishLen, lRecvLen - lFinishLen, 0)第四个参数0表示什么意思?我查了半天没有找到。
解决方案 »
- long int是多少位,这个是C语言决定的,还是OS位数决定的,还是编译器自己决定的?
- mfc 新建或关闭文件询问是否保存问题!急!!!!
- 用OpenGL如何实现太阳光照效果?
- 像CRect和CBrush这种对象有没有这种方法?
- const修饰符 下的指针和引用有什么区别?
- 请问可变长的CString变量如何序列化?在线等候!多谢!
- 急!弱!求教怎样连接数据库???
- 请教大侠:函数 int[] deal(char* request) 如何将char* request 传入,再具体点,
- CPaintDC, CClientDC与CWindowDC的区别??
- 那里有画图、动画的类可复用
- 在MFC编程中如何用代码创建新的对话框??如何从一个对话框转换到另一个对话框。
- 请问如何实现CFormView的页面切换
int recv (
SOCKET s,
char FAR* buf,
int len,
int flags
);
flags
[in] A flag specifying the way in which the call is made.
The flags parameter can be used to influence the behavior of the function invocation beyond the options specified for the associated socket. The semantics of this function are determined by the socket options and the flags parameter. The latter is constructed by or'ing the following values:Value Meaning
MSG_PEEK Peek at the incoming data. The data is copied into the buffer but is not removed from the input queue. The function then returns the number of bytes currently pending to receive.
MSG_OOB Process out-of-band data. (See section DECnet Out-Of-band data for a discussion of this topic.)
楼主安装一下MSDN,然后在索引直接输入 recv就可以查到该函数~~~
里面有详细的说明:
The recv function receives data from a connected or bound socket.int recv(
SOCKET s,
char* buf,
int len,
int flags
);
MSG_OOB 是 1