sosend( ) will not process mbuf if you pass it a uio (according to arty)

svn path=/trunk/; revision=10925
This commit is contained in:
Royce Mitchell III 2004-09-20 04:13:46 +00:00
parent 5124ae5f88
commit 10adf2be06

View file

@ -250,16 +250,16 @@ int OskitTCPClose( void *socket ) {
int OskitTCPSend( void *socket, OSK_PCHAR Data, OSK_UINT Len,
OSK_UINT *OutLen, OSK_UINT flags ) {
struct mbuf mb;
struct uio uio = { 0 };
/*struct uio uio = { 0 };*/
int error = 0;
OskitDumpBuffer( Data, Len );
uio.uio_resid = Len;
/*uio.uio_resid = Len;*/
mb.m_data = Data;
mb.m_len = Len;
mb.m_flags = M_EOR;
error = sosend( socket, NULL, &uio, (struct mbuf *)&mb, NULL, 0 );
printf("uio.uio_resid = %d\n", uio.uio_resid);
*OutLen = uio.uio_resid;
error = sosend( socket, NULL, NULL /*&uio*/, (struct mbuf *)&mb, NULL, 0 );
/*printf("uio.uio_resid = %d\n", uio.uio_resid);*/
*OutLen = Len /*uio.uio_resid*/;
return error;
}