int CTcpServer::SendPack(TSocketObj* pSocketObj, const BYTE* pBuffer, int iLength) { BOOL isPostSend = !TSocketObj::IsPending(pSocketObj); return CatAndPost(pSocketObj, pBuffer, iLength, isPostSend); }
int CTcpAgent::SendSafe(TSocketObj* pSocketObj, const BYTE* pBuffer, int iLength) { BOOL isPostSend = !TSocketObj::IsPending(pSocketObj) && TSocketObj::IsSmooth(pSocketObj); return CatAndPost(pSocketObj, pBuffer, iLength, isPostSend); }
int CTcpServer::SendSafe(TSocketObj* pSocketObj, const BYTE* pBuffer, int iLength) { return CatAndPost(pSocketObj, pBuffer, iLength); }