刚刚学习SOCKET 请教SEND函数一个参数的意义?
send
The Windows Sockets send function sends data on a connected socket.
int send (
SOCKET s,
const char FAR * buf,
int len,
int flags
);
Parameters
s
[in] A descriptor identifying a connected socket.
buf
[in] A buffer containing the data to be transmitted.
len
[in] The length of the data in buf.
flags
[in] An indicator specifying the way in which the call is made.
MSDN中的说明 请各位给我解释一下 参数 flags 的具体含义
E文的没理解好。帮我准确翻译一下也行
The flags parameter can be used to influence the behavior of the function 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_DONTROUTE Specifies that the data should not be subject to routing. A Windows Sockets service provider can choose to ignore this flag.
MSG_OOB Send out-of-band data (stream-style socket such as SOCK_STREAM only. Also see DECnet Out-Of-band data for a discussion of this topic).