bool Socket::Send(IN const uint8* pSrc, INOUT uint32 unSize) { if(!m_bConnected) return false; AutoLock _AutoLock(m_WriteMutex); if(bufferevent_write(m_pBufEvent, (void*)pSrc, unSize) == -1 ) return false; return true; }