mirror of
https://github.com/reactos/reactos.git
synced 2025-01-05 22:12:46 +00:00
- Get afd to build.
svn path=/trunk/; revision=20658
This commit is contained in:
parent
9e3f61ba5d
commit
d805761fd6
8 changed files with 16 additions and 15 deletions
|
@ -65,7 +65,7 @@ NTSTATUS MakeSocketIntoConnection( PAFD_FCB FCB ) {
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
static NTSTATUS DDKAPI StreamSocketConnectComplete
|
static NTSTATUS NTAPI StreamSocketConnectComplete
|
||||||
( PDEVICE_OBJECT DeviceObject,
|
( PDEVICE_OBJECT DeviceObject,
|
||||||
PIRP Irp,
|
PIRP Irp,
|
||||||
PVOID Context ) {
|
PVOID Context ) {
|
||||||
|
|
|
@ -72,7 +72,7 @@ static VOID SatisfyPreAccept( PIRP Irp, PAFD_TDI_OBJECT_QELT Qelt ) {
|
||||||
IoCompleteRequest( Irp, IO_NETWORK_INCREMENT );
|
IoCompleteRequest( Irp, IO_NETWORK_INCREMENT );
|
||||||
}
|
}
|
||||||
|
|
||||||
static NTSTATUS DDKAPI ListenComplete
|
static NTSTATUS NTAPI ListenComplete
|
||||||
( PDEVICE_OBJECT DeviceObject,
|
( PDEVICE_OBJECT DeviceObject,
|
||||||
PIRP Irp,
|
PIRP Irp,
|
||||||
PVOID Context ) {
|
PVOID Context ) {
|
||||||
|
|
|
@ -232,7 +232,7 @@ VOID SocketStateUnlock( PAFD_FCB FCB ) {
|
||||||
ExReleaseFastMutex( &FCB->Mutex );
|
ExReleaseFastMutex( &FCB->Mutex );
|
||||||
}
|
}
|
||||||
|
|
||||||
NTSTATUS DDKAPI UnlockAndMaybeComplete
|
NTSTATUS NTAPI UnlockAndMaybeComplete
|
||||||
( PAFD_FCB FCB, NTSTATUS Status, PIRP Irp,
|
( PAFD_FCB FCB, NTSTATUS Status, PIRP Irp,
|
||||||
UINT Information,
|
UINT Information,
|
||||||
PIO_COMPLETION_ROUTINE Completion,
|
PIO_COMPLETION_ROUTINE Completion,
|
||||||
|
|
|
@ -47,9 +47,10 @@ static NTSTATUS TryToSatisfyRecvRequestFromBuffer( PAFD_FCB FCB,
|
||||||
UINT i, BytesToCopy = 0,
|
UINT i, BytesToCopy = 0,
|
||||||
BytesAvailable =
|
BytesAvailable =
|
||||||
FCB->Recv.Content - FCB->Recv.BytesUsed;
|
FCB->Recv.Content - FCB->Recv.BytesUsed;
|
||||||
*TotalBytesCopied = 0;
|
|
||||||
PAFD_MAPBUF Map;
|
PAFD_MAPBUF Map;
|
||||||
NTSTATUS Status;
|
NTSTATUS Status;
|
||||||
|
*TotalBytesCopied = 0;
|
||||||
|
|
||||||
|
|
||||||
AFD_DbgPrint(MID_TRACE,("Called, BytesAvailable = %d\n",
|
AFD_DbgPrint(MID_TRACE,("Called, BytesAvailable = %d\n",
|
||||||
BytesAvailable));
|
BytesAvailable));
|
||||||
|
@ -210,7 +211,7 @@ static NTSTATUS ReceiveActivity( PAFD_FCB FCB, PIRP Irp ) {
|
||||||
return RetStatus;
|
return RetStatus;
|
||||||
}
|
}
|
||||||
|
|
||||||
NTSTATUS DDKAPI ReceiveComplete
|
NTSTATUS NTAPI ReceiveComplete
|
||||||
( PDEVICE_OBJECT DeviceObject,
|
( PDEVICE_OBJECT DeviceObject,
|
||||||
PIRP Irp,
|
PIRP Irp,
|
||||||
PVOID Context ) {
|
PVOID Context ) {
|
||||||
|
@ -418,7 +419,7 @@ SatisfyPacketRecvRequest( PAFD_FCB FCB, PIRP Irp,
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
NTSTATUS DDKAPI
|
NTSTATUS NTAPI
|
||||||
PacketSocketRecvComplete(
|
PacketSocketRecvComplete(
|
||||||
PDEVICE_OBJECT DeviceObject,
|
PDEVICE_OBJECT DeviceObject,
|
||||||
PIRP Irp,
|
PIRP Irp,
|
||||||
|
|
|
@ -8,9 +8,7 @@
|
||||||
* CSH 01/09-2000 Created
|
* CSH 01/09-2000 Created
|
||||||
*/
|
*/
|
||||||
#include <afd.h>
|
#include <afd.h>
|
||||||
#ifndef _MSC_VER
|
|
||||||
#include <pseh/pseh.h>
|
#include <pseh/pseh.h>
|
||||||
#endif
|
|
||||||
#include "debug.h"
|
#include "debug.h"
|
||||||
#include "tdiconn.h"
|
#include "tdiconn.h"
|
||||||
#include "tdi_proto.h"
|
#include "tdi_proto.h"
|
||||||
|
|
|
@ -183,6 +183,7 @@ TdiBuildConnectionInfoPair
|
||||||
PCHAR LayoutFrame;
|
PCHAR LayoutFrame;
|
||||||
UINT SizeOfEntry;
|
UINT SizeOfEntry;
|
||||||
ULONG TdiAddressSize;
|
ULONG TdiAddressSize;
|
||||||
|
PTDI_CONNECTION_INFORMATION FromTdiConn, ToTdiConn;
|
||||||
|
|
||||||
/* FIXME: Get from socket information */
|
/* FIXME: Get from socket information */
|
||||||
TdiAddressSize = TdiAddressSizeFromType(From->Address[0].AddressType);
|
TdiAddressSize = TdiAddressSizeFromType(From->Address[0].AddressType);
|
||||||
|
@ -197,8 +198,7 @@ TdiBuildConnectionInfoPair
|
||||||
|
|
||||||
RtlZeroMemory( LayoutFrame, 2 * SizeOfEntry );
|
RtlZeroMemory( LayoutFrame, 2 * SizeOfEntry );
|
||||||
|
|
||||||
PTDI_CONNECTION_INFORMATION
|
FromTdiConn = (PTDI_CONNECTION_INFORMATION)LayoutFrame;
|
||||||
FromTdiConn = (PTDI_CONNECTION_INFORMATION)LayoutFrame,
|
|
||||||
ToTdiConn = (PTDI_CONNECTION_INFORMATION)LayoutFrame + SizeOfEntry;
|
ToTdiConn = (PTDI_CONNECTION_INFORMATION)LayoutFrame + SizeOfEntry;
|
||||||
|
|
||||||
if (From != NULL) {
|
if (From != NULL) {
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
#include "tdiconn.h"
|
#include "tdiconn.h"
|
||||||
#include "debug.h"
|
#include "debug.h"
|
||||||
|
|
||||||
static NTSTATUS DDKAPI SendComplete
|
static NTSTATUS NTAPI SendComplete
|
||||||
( PDEVICE_OBJECT DeviceObject,
|
( PDEVICE_OBJECT DeviceObject,
|
||||||
PIRP Irp,
|
PIRP Irp,
|
||||||
PVOID Context ) {
|
PVOID Context ) {
|
||||||
|
@ -159,7 +159,7 @@ static NTSTATUS DDKAPI SendComplete
|
||||||
return STATUS_SUCCESS;
|
return STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
static NTSTATUS DDKAPI PacketSocketSendComplete
|
static NTSTATUS NTAPI PacketSocketSendComplete
|
||||||
( PDEVICE_OBJECT DeviceObject,
|
( PDEVICE_OBJECT DeviceObject,
|
||||||
PIRP Irp,
|
PIRP Irp,
|
||||||
PVOID Context ) {
|
PVOID Context ) {
|
||||||
|
|
|
@ -19,6 +19,8 @@
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#define _WINBASE_
|
#define _WINBASE_
|
||||||
#define _WINDOWS_H
|
#define _WINDOWS_H
|
||||||
|
#define _INC_WINDOWS
|
||||||
|
#include <windef.h>
|
||||||
#include <winsock2.h>
|
#include <winsock2.h>
|
||||||
#include <afd/shared.h>
|
#include <afd/shared.h>
|
||||||
|
|
||||||
|
@ -201,7 +203,7 @@ PAFD_WSABUF LockBuffers( PAFD_WSABUF Buf, UINT Count,
|
||||||
BOOLEAN Write, BOOLEAN LockAddress );
|
BOOLEAN Write, BOOLEAN LockAddress );
|
||||||
VOID UnlockBuffers( PAFD_WSABUF Buf, UINT Count, BOOL Address );
|
VOID UnlockBuffers( PAFD_WSABUF Buf, UINT Count, BOOL Address );
|
||||||
UINT SocketAcquireStateLock( PAFD_FCB FCB );
|
UINT SocketAcquireStateLock( PAFD_FCB FCB );
|
||||||
NTSTATUS DDKAPI UnlockAndMaybeComplete
|
NTSTATUS NTAPI UnlockAndMaybeComplete
|
||||||
( PAFD_FCB FCB, NTSTATUS Status, PIRP Irp,
|
( PAFD_FCB FCB, NTSTATUS Status, PIRP Irp,
|
||||||
UINT Information,
|
UINT Information,
|
||||||
PIO_COMPLETION_ROUTINE Completion,
|
PIO_COMPLETION_ROUTINE Completion,
|
||||||
|
@ -223,12 +225,12 @@ VOID DestroySocket( PAFD_FCB FCB );
|
||||||
|
|
||||||
/* read.c */
|
/* read.c */
|
||||||
|
|
||||||
NTSTATUS DDKAPI ReceiveComplete
|
NTSTATUS NTAPI ReceiveComplete
|
||||||
( PDEVICE_OBJECT DeviceObject,
|
( PDEVICE_OBJECT DeviceObject,
|
||||||
PIRP Irp,
|
PIRP Irp,
|
||||||
PVOID Context );
|
PVOID Context );
|
||||||
|
|
||||||
NTSTATUS DDKAPI PacketSocketRecvComplete
|
NTSTATUS NTAPI PacketSocketRecvComplete
|
||||||
( PDEVICE_OBJECT DeviceObject,
|
( PDEVICE_OBJECT DeviceObject,
|
||||||
PIRP Irp,
|
PIRP Irp,
|
||||||
PVOID Context );
|
PVOID Context );
|
||||||
|
|
Loading…
Reference in a new issue