The SOCKS consumer is now returning the number of sent bytes.
git-svn-id: http://yate.null.ro/svn/yate/trunk@2751 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
parent
0fa67c2703
commit
d1ac03c5f7
|
@ -3341,10 +3341,9 @@ unsigned long YSocksConsumer::Consume(const DataBlock &data, unsigned long tStam
|
|||
{
|
||||
XDebug(m_wrapper,DebugAll,"Sending %u bytes [%p]",data.length(),m_wrapper);
|
||||
unsigned int sent = data.length();
|
||||
if (m_wrapper && m_wrapper->state() == YSocksWrapper::Running && m_wrapper->m_conn) {
|
||||
m_wrapper->m_conn->send(data.data(),sent);
|
||||
return invalidStamp();
|
||||
}
|
||||
if (m_wrapper && m_wrapper->state() == YSocksWrapper::Running &&
|
||||
m_wrapper->m_conn && m_wrapper->m_conn->send(data.data(),sent))
|
||||
return sent;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue