IDeviceAgentTransport
Used to communicate with a RemoteAgent on the desktop computer.
IDeviceAgentTransport : public IUnknown
Methods
Method |
Description |
---|---|
Registers an array of service IDs. The device agent can accept connection requests from the development computer whose service ID is in the array. |
|
Accepts a connection initiated when CreatePacketStream is called on the desktop computer. The method then prepares the device packet stream argument for data transfer. |
|
Registers a callback to receive notification before the agent is shut down. |
|
Removes the callback from the callback list. The callback will no longer receive shutdown notification. |
Remarks
To get an object that implements this interface, use GetDeviceAgentTransport.
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..::.IDeviceAgentTransport
Requirements
DeviceAgentTransport.h