All pastes #923398 Raw Edit

Stuff

public text v1 · immutable
#923398 ·published 2008-02-29 15:07 UTC
rendered paste body
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;
}