Commit a1ce035e authored by Cyril Deguet's avatar Cyril Deguet

- Added the SocketBuff functions for WIN32

parent 637f2763
......@@ -2,7 +2,7 @@
* socket.cpp: socket management
*-------------------------------------------------------------------------------
* (c)1999-2001 VideoLAN
* $Id: socket.cpp,v 1.5 2002/03/24 18:54:10 asmax Exp $
* $Id: socket.cpp,v 1.6 2002/03/25 12:39:52 asmax Exp $
*
* Authors: Benoit Steiner <benny@via.ecp.fr>
* Arnaud de Bossoreille de Ribou <bozo@via.ecp.fr>
......@@ -171,14 +171,14 @@ void C_SocketBuff::AssignSlot(unsigned int iSlot, byte* pBuff,
m_pBuffers[iSlot].iov_base = (bufftype*)pBuff;
m_pBuffers[iSlot].iov_len = iBuffSize;
#elif defined WIN32
ASSERT(false);
m_pBuffers[iSlot].buf = (bufftype*)pBuff;
m_pBuffers[iSlot].len = iBuffSize;
#endif
}
//------------------------------------------------------------------------------
//
//------------------------------------------------------------------------------
......@@ -192,7 +192,7 @@ void C_SocketBuff::SetSlotBuff(unsigned int iSlot, byte* pBuff)
#ifdef STRUCT_IOVEC_IN_SYS_UIO_H
m_pBuffers[iSlot].iov_base = (bufftype*)pBuff;
#elif defined WIN32
ASSERT(false);
m_pBuffers[iSlot].buf = (bufftype*)pBuff;
#endif
}
......@@ -211,7 +211,7 @@ void C_SocketBuff::SetSlotSize(unsigned int iSlot, unsigned int iBuffSize)
#ifdef STRUCT_IOVEC_IN_SYS_UIO_H
m_pBuffers[iSlot].iov_len = iBuffSize;
#elif defined WIN32
ASSERT(false);
m_pBuffers[iSlot].len = iBuffSize;
#endif
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment