|
ReactOS 0.4.16-dev-1946-g52006dd
|

Go to the source code of this file.
Macros | |
| #define | NDEBUG |
| NTSTATUS TdiAccept | ( | PIRP * | Irp, |
| PFILE_OBJECT | AcceptConnectionObject, | ||
| PTDI_CONNECTION_INFORMATION | RequestConnectionInfo, | ||
| PTDI_CONNECTION_INFORMATION | ReturnConnectionInfo, | ||
| PIO_COMPLETION_ROUTINE | CompletionRoutine, | ||
| PVOID | CompletionContext | ||
| ) |
Listen on a connection endpoint for a connection request from a remote peer.
| CompletionRoutine | = Routine to be called when IRP is completed |
| CompletionContext | = Context for CompletionRoutine |
Definition at line 517 of file tdi.c.
| NTSTATUS TdiAssociateAddressFile | ( | HANDLE | AddressHandle, |
| PFILE_OBJECT | ConnectionObject | ||
| ) |
Associates a connection endpoint to an address file object.
| AddressHandle | = Handle to address file object |
| ConnectionObject | = Connection endpoint file object |
Definition at line 366 of file tdi.c.
Referenced by StartListening(), WarmSocketForConnection(), and WskConnect().
|
static |
Calls a transport driver device.
| Irp | = Pointer to I/O Request Packet |
| DeviceObject | = Pointer to device object to call |
| Event | = An optional pointer to an event handle that will be waited upon |
| Iosb | = Pointer to an IO status block |
Definition at line 26 of file tdi.c.
Referenced by TdiAccept(), TdiAssociateAddressFile(), TdiConnect(), TdiDisassociateAddressFile(), TdiDisconnect(), TdiListen(), TdiQueryDeviceControl(), TdiQueryInformation(), TdiReceive(), TdiReceiveDatagram(), TdiSend(), TdiSendDatagram(), and TdiSetEventHandler().
| NTSTATUS TdiConnect | ( | PIRP * | Irp, |
| PFILE_OBJECT | ConnectionObject, | ||
| PTDI_CONNECTION_INFORMATION | ConnectionCallInfo, | ||
| PTDI_CONNECTION_INFORMATION | ConnectionReturnInfo, | ||
| PIO_COMPLETION_ROUTINE | CompletionRoutine, | ||
| PVOID | CompletionContext | ||
| ) |
Connect a connection endpoint to a remote peer.
| ConnectionObject | = Pointer to connection endpoint file object |
| RemoteAddress | = Pointer to remote address |
Definition at line 311 of file tdi.c.
Referenced by AfdStreamSocketConnect(), and WskConnect().
| NTSTATUS TdiDisassociateAddressFile | ( | PFILE_OBJECT | ConnectionObject | ) |
Disassociates a connection endpoint from an address file object.
| ConnectionObject | = Connection endpoint file object |
Definition at line 416 of file tdi.c.
Referenced by AfdCloseSocket(), SocketShutdown(), StartListening(), and WskConnect().
| NTSTATUS TdiDisconnect | ( | PIRP * | Irp, |
| PFILE_OBJECT | TransportObject, | ||
| PLARGE_INTEGER | Time, | ||
| USHORT | Flags, | ||
| PIO_COMPLETION_ROUTINE | CompletionRoutine, | ||
| PVOID | CompletionContext, | ||
| PTDI_CONNECTION_INFORMATION | RequestConnectionInfo, | ||
| PTDI_CONNECTION_INFORMATION | ReturnConnectionInfo | ||
| ) |
Definition at line 1266 of file tdi.c.
Referenced by DoDisconnect().
| NTSTATUS TdiListen | ( | PIRP * | Irp, |
| PFILE_OBJECT | ConnectionObject, | ||
| PTDI_CONNECTION_INFORMATION * | RequestConnectionInfo, | ||
| PTDI_CONNECTION_INFORMATION * | ReturnConnectionInfo, | ||
| PIO_COMPLETION_ROUTINE | CompletionRoutine, | ||
| PVOID | CompletionContext | ||
| ) |
Listen on a connection endpoint for a connection request from a remote peer.
| CompletionRoutine | = Routine to be called when IRP is completed |
| CompletionContext | = Context for CompletionRoutine |
Definition at line 463 of file tdi.c.
Referenced by AfdListenSocket(), ListenComplete(), and StartListening().
| NTSTATUS TdiOpenAddressFile | ( | PUNICODE_STRING | DeviceName, |
| PTRANSPORT_ADDRESS | Name, | ||
| ULONG | ShareType, | ||
| PHANDLE | AddressHandle, | ||
| PFILE_OBJECT * | AddressObject | ||
| ) |
Opens an IPv4 address file object.
| DeviceName | = Pointer to counted string with name of device |
| Name | = Pointer to socket name (IPv4 address family) |
| AddressHandle | = Address of buffer to place address file handle |
| AddressObject | = Address of buffer to place address file object |
Definition at line 148 of file tdi.c.
Referenced by WarmSocketForBind(), and WskBind().
| NTSTATUS TdiOpenConnectionEndpointFile | ( | PUNICODE_STRING | DeviceName, |
| PHANDLE | ConnectionHandle, | ||
| PFILE_OBJECT * | ConnectionObject | ||
| ) |
Opens a connection endpoint file object.
| DeviceName | = Pointer to counted string with name of device |
| ConnectionHandle | = Address of buffer to place connection endpoint file handle |
| ConnectionObject | = Address of buffer to place connection endpoint file object |
Definition at line 258 of file tdi.c.
Referenced by WarmSocketForConnection(), and WskSocket().
|
static |
Opens a device.
| DeviceName | = Pointer to counted string with name of device |
| EaLength | = Length of EA information |
| EaInfo | = Pointer to buffer with EA information |
| Handle | = Address of buffer to place device handle |
| Object | = Address of buffer to place device object |
Definition at line 68 of file tdi.c.
Referenced by TdiOpenAddressFile(), and TdiOpenConnectionEndpointFile().
| NTSTATUS TdiQueryAddress | ( | PFILE_OBJECT | FileObject, |
| PULONG | Address | ||
| ) |
Queries for a local IP address.
| FileObject | = Pointer to file object |
| Address | = Address of buffer to place local address |
Definition at line 787 of file tdi.c.
| NTSTATUS TdiQueryDeviceControl | ( | PFILE_OBJECT | FileObject, |
| ULONG | IoControlCode, | ||
| PVOID | InputBuffer, | ||
| ULONG | InputBufferLength, | ||
| PVOID | OutputBuffer, | ||
| ULONG | OutputBufferLength, | ||
| PULONG | Return | ||
| ) |
Queries a device for information.
| FileObject | = Pointer to file object |
| IoControlCode | = I/O control code |
| InputBuffer | = Pointer to buffer with input data |
| InputBufferLength | = Length of InputBuffer |
| OutputBuffer | = Address of buffer to place output data |
| OutputBufferLength | = Length of OutputBuffer |
Definition at line 632 of file tdi.c.
Referenced by TdiQueryInformationEx().
| NTSTATUS TdiQueryInformation | ( | PFILE_OBJECT | FileObject, |
| LONG | QueryType, | ||
| PMDL | MdlBuffer | ||
| ) |
Query for information.
| FileObject | = Pointer to file object |
| QueryType | = Query type |
| MdlBuffer | = Pointer to MDL buffer specific for query type |
Definition at line 693 of file tdi.c.
Referenced by AfdGetSockName(), and TdiQueryMaxDatagramLength().
| NTSTATUS TdiQueryInformationEx | ( | PFILE_OBJECT | FileObject, |
| ULONG | Entity, | ||
| ULONG | Instance, | ||
| ULONG | Class, | ||
| ULONG | Type, | ||
| ULONG | Id, | ||
| PVOID | OutputBuffer, | ||
| PULONG | OutputLength | ||
| ) |
Extended query for information.
| FileObject | = Pointer to file object |
| Entity | = Entity |
| Instance | = Instance |
| Class | = Entity class |
| Type | = Entity type |
| Id | = Entity id |
| OutputBuffer | = Address of buffer to place data |
| OutputLength | = Address of buffer with length of OutputBuffer (updated) |
Definition at line 745 of file tdi.c.
Referenced by TdiQueryAddress().
| NTSTATUS TdiQueryMaxDatagramLength | ( | PFILE_OBJECT | FileObject, |
| PUINT | MaxDatagramLength | ||
| ) |
Definition at line 203 of file tdi.c.
Referenced by MakeSocketIntoConnection(), and WarmSocketForBind().
| NTSTATUS TdiReceive | ( | PIRP * | Irp, |
| PFILE_OBJECT | TransportObject, | ||
| USHORT | Flags, | ||
| PCHAR | Buffer, | ||
| UINT | BufferLength, | ||
| PIO_COMPLETION_ROUTINE | CompletionRoutine, | ||
| PVOID | CompletionContext | ||
| ) |
Definition at line 999 of file tdi.c.
Referenced by MakeSocketIntoConnection(), RefillSocketBuffer(), and WskStreamIo().
| NTSTATUS TdiReceiveDatagram | ( | PIRP * | Irp, |
| PFILE_OBJECT | TransportObject, | ||
| USHORT | Flags, | ||
| PCHAR | Buffer, | ||
| UINT | BufferLength, | ||
| PTDI_CONNECTION_INFORMATION | Addr, | ||
| PIO_COMPLETION_ROUTINE | CompletionRoutine, | ||
| PVOID | CompletionContext | ||
| ) |
Receives a datagram.
| TransportObject | = Pointer to transport object |
| From | = Receive filter (NULL if none) |
| Address | = Address of buffer to place remote address |
| Buffer | = Address of buffer to place received data |
| BufferSize | = Address of buffer with length of Buffer (updated) |
Definition at line 1079 of file tdi.c.
Referenced by PacketSocketRecvComplete(), and WarmSocketForBind().
| NTSTATUS TdiSend | ( | PIRP * | Irp, |
| PFILE_OBJECT | TransportObject, | ||
| USHORT | Flags, | ||
| PCHAR | Buffer, | ||
| UINT | BufferLength, | ||
| PIO_COMPLETION_ROUTINE | CompletionRoutine, | ||
| PVOID | CompletionContext | ||
| ) |
Definition at line 923 of file tdi.c.
Referenced by AfdConnectedSocketWriteData(), SendComplete(), and WskStreamIo().
| NTSTATUS TdiSendDatagram | ( | PIRP * | Irp, |
| PFILE_OBJECT | TransportObject, | ||
| PCHAR | Buffer, | ||
| UINT | BufferLength, | ||
| PTDI_CONNECTION_INFORMATION | Addr, | ||
| PIO_COMPLETION_ROUTINE | CompletionRoutine, | ||
| PVOID | CompletionContext | ||
| ) |
Sends a datagram.
| TransportObject | = Pointer to transport object |
| From | = Send filter (NULL if none) |
| Address | = Address of buffer to place remote address |
| Buffer | = Address of buffer to place send data |
| BufferSize | = Address of buffer with length of Buffer (updated) |
Definition at line 1170 of file tdi.c.
Referenced by AfdConnectedSocketWriteData(), AfdPacketSocketWriteData(), and WskSendTo().
| NTSTATUS TdiSetEventHandler | ( | PFILE_OBJECT | FileObject, |
| LONG | EventType, | ||
| PVOID | Handler, | ||
| PVOID | Context | ||
| ) |
Sets or resets an event handler.
| FileObject | = Pointer to file object |
| EventType | = Event code |
| Handler | = Event handler to be called when the event occurs |
| Context | = Context input to handler when the event occurs |
Specify NULL for Handler to stop calling event handler
Definition at line 571 of file tdi.c.
Referenced by AfdDeregisterEventHandlers(), and AfdRegisterEventHandlers().