asend 这是什么函数?大伙们遇到过吗?
我看了别人的工程源码,里面就有asend,百度不出来是什么函数,具体有什么作用?
字意上面看,应该是一个发送函数,发送了怎么接收?我也不知道。
bool MsgSend(MESSAGE_STACK* Stack, int Msg, duint Param1, duint Param2) //这个是工程源码。
{
if(Stack->Destroy)
return false;
MESSAGE newMessage;
newMessage.msg = Msg;
newMessage.param1 = Param1;
newMessage.param2 = Param2;
// Asynchronous send
asend(Stack->msgs, newMessage);
return true;
}
代码就是怎么写的,我进去看了asend函数,他是VC\include\agents.h的函数
template <class _Type>
bool asend(_Inout_ ITarget<_Type> * _Trg, const _Type& _Data)
{
return details::_Originator::_asend(_Trg, _Data);
}