mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
sosend( ) will not process mbuf if you pass it a uio (according to arty)
svn path=/trunk/; revision=10925
This commit is contained in:
parent
5124ae5f88
commit
10adf2be06
1 changed files with 5 additions and 5 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue