Kommentar
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
Exchanges data with a connected DevicePacketStream on the desktop computer by reading and writing objects that implement IPacket.
IDevicePacketStream : public IUnknown
Methods
Method |
Description |
|---|---|
Reads packets sent from the DevicePacketStream on the desktop computer. |
|
Writes a packet to the stream. The packet is read by the DevicePacketStream on the desktop computer. |
|
Checks if stream is connected. |
|
Disconnects the stream. |
|
Checks if there is a packet ready to be read. |
|
Checks if Nagle's buffering algorithm is enabled on the stream. |
|
Enables or disables Nagle's buffering algorithm on the stream. |
|
Gets the maximum packet size limited by the underlying transport mechanism. |
Remarks
To get an object that implements this interface, use IDeviceAgentTransport::AcceptConnectionEx.
Example
The following example is a device agent application that writes one packet to the desktop and reads one packet from the desktop.
Managed Equivalent
Microsoft.SmartDevice.DeviceAgentTransport..::.IDevicePacketStream
Requirements
DeviceAgentTransport.h