C# Класс OpenHome.Net.ControlPoint.Proxies.CpProxyUpnpOrgConnectionManager1

Proxy for the upnp.org:ConnectionManager:1 UPnP service
Наследование: OpenHome.Net.ControlPoint.CpProxy, IDisposable, ICpProxyUpnpOrgConnectionManager1
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
BeginConnectionComplete ( int aConnectionID, CallbackAsyncComplete aCallback ) : void

Invoke the action asynchronously

Returns immediately and will run the client-specified callback when the action later completes. Any output arguments can then be retrieved by calling EndConnectionComplete().

BeginGetCurrentConnectionIDs ( CallbackAsyncComplete aCallback ) : void

Invoke the action asynchronously

Returns immediately and will run the client-specified callback when the action later completes. Any output arguments can then be retrieved by calling EndGetCurrentConnectionIDs().

BeginGetCurrentConnectionInfo ( int aConnectionID, CallbackAsyncComplete aCallback ) : void

Invoke the action asynchronously

Returns immediately and will run the client-specified callback when the action later completes. Any output arguments can then be retrieved by calling EndGetCurrentConnectionInfo().

BeginGetProtocolInfo ( CallbackAsyncComplete aCallback ) : void

Invoke the action asynchronously

Returns immediately and will run the client-specified callback when the action later completes. Any output arguments can then be retrieved by calling EndGetProtocolInfo().

BeginPrepareForConnection ( String aRemoteProtocolInfo, String aPeerConnectionManager, int aPeerConnectionID, String aDirection, CallbackAsyncComplete aCallback ) : void

Invoke the action asynchronously

Returns immediately and will run the client-specified callback when the action later completes. Any output arguments can then be retrieved by calling EndPrepareForConnection().

CpProxyUpnpOrgConnectionManager1 ( ICpDevice aDevice ) : System

Constructor

Use CpProxy::[Un]Subscribe() to enable/disable querying of state variable and reporting of their changes.

Dispose ( ) : void

Must be called for each class instance. Must be called before Core.Library.Close().

EndConnectionComplete ( IntPtr aAsyncHandle ) : void

Retrieve the output arguments from an asynchronously invoked action.

This may only be called from the callback set in the above Begin function.

EndGetCurrentConnectionIDs ( IntPtr aAsyncHandle, String &aConnectionIDs ) : void

Retrieve the output arguments from an asynchronously invoked action.

This may only be called from the callback set in the above Begin function.

EndGetCurrentConnectionInfo ( IntPtr aAsyncHandle, int &aRcsID, int &aAVTransportID, String &aProtocolInfo, String &aPeerConnectionManager, int &aPeerConnectionID, String &aDirection, String &aStatus ) : void

Retrieve the output arguments from an asynchronously invoked action.

This may only be called from the callback set in the above Begin function.

EndGetProtocolInfo ( IntPtr aAsyncHandle, String &aSource, String &aSink ) : void

Retrieve the output arguments from an asynchronously invoked action.

This may only be called from the callback set in the above Begin function.

EndPrepareForConnection ( IntPtr aAsyncHandle, int &aConnectionID, int &aAVTransportID, int &aRcsID ) : void

Retrieve the output arguments from an asynchronously invoked action.

This may only be called from the callback set in the above Begin function.

PropertyCurrentConnectionIDs ( ) : String

Query the value of the CurrentConnectionIDs property.

This function is threadsafe and can only be called if Subscribe() has been called and a first eventing callback received more recently than any call to Unsubscribe().

PropertySinkProtocolInfo ( ) : String

Query the value of the SinkProtocolInfo property.

This function is threadsafe and can only be called if Subscribe() has been called and a first eventing callback received more recently than any call to Unsubscribe().

PropertySourceProtocolInfo ( ) : String

Query the value of the SourceProtocolInfo property.

This function is threadsafe and can only be called if Subscribe() has been called and a first eventing callback received more recently than any call to Unsubscribe().

SetPropertyCurrentConnectionIDsChanged ( System aCurrentConnectionIDsChanged ) : void

Set a delegate to be run when the CurrentConnectionIDs state variable changes.

Callbacks may be run in different threads but callbacks for a CpProxyUpnpOrgConnectionManager1 instance will not overlap.

SetPropertySinkProtocolInfoChanged ( System aSinkProtocolInfoChanged ) : void

Set a delegate to be run when the SinkProtocolInfo state variable changes.

Callbacks may be run in different threads but callbacks for a CpProxyUpnpOrgConnectionManager1 instance will not overlap.

SetPropertySourceProtocolInfoChanged ( System aSourceProtocolInfoChanged ) : void

Set a delegate to be run when the SourceProtocolInfo state variable changes.

Callbacks may be run in different threads but callbacks for a CpProxyUpnpOrgConnectionManager1 instance will not overlap.

SyncConnectionComplete ( int aConnectionID ) : void

Invoke the action synchronously

Blocks until the action has been processed on the device and sets any output arguments

SyncGetCurrentConnectionIDs ( String &aConnectionIDs ) : void

Invoke the action synchronously

Blocks until the action has been processed on the device and sets any output arguments

SyncGetCurrentConnectionInfo ( int aConnectionID, int &aRcsID, int &aAVTransportID, String &aProtocolInfo, String &aPeerConnectionManager, int &aPeerConnectionID, String &aDirection, String &aStatus ) : void

Invoke the action synchronously

Blocks until the action has been processed on the device and sets any output arguments

SyncGetProtocolInfo ( String &aSource, String &aSink ) : void

Invoke the action synchronously

Blocks until the action has been processed on the device and sets any output arguments

SyncPrepareForConnection ( String aRemoteProtocolInfo, String aPeerConnectionManager, int aPeerConnectionID, String aDirection, int &aConnectionID, int &aAVTransportID, int &aRcsID ) : void

Invoke the action synchronously

Blocks until the action has been processed on the device and sets any output arguments

Приватные методы

Метод Описание
CurrentConnectionIDsPropertyChanged ( ) : void
SinkProtocolInfoPropertyChanged ( ) : void
SourceProtocolInfoPropertyChanged ( ) : void

Описание методов

BeginConnectionComplete() публичный Метод

Invoke the action asynchronously
Returns immediately and will run the client-specified callback when the action later completes. Any output arguments can then be retrieved by calling EndConnectionComplete().
public BeginConnectionComplete ( int aConnectionID, CallbackAsyncComplete aCallback ) : void
aConnectionID int
aCallback CallbackAsyncComplete Delegate to run when the action completes. /// This is guaranteed to be run but may indicate an error
Результат void

BeginGetCurrentConnectionIDs() публичный Метод

Invoke the action asynchronously
Returns immediately and will run the client-specified callback when the action later completes. Any output arguments can then be retrieved by calling EndGetCurrentConnectionIDs().
public BeginGetCurrentConnectionIDs ( CallbackAsyncComplete aCallback ) : void
aCallback CallbackAsyncComplete Delegate to run when the action completes. /// This is guaranteed to be run but may indicate an error
Результат void

BeginGetCurrentConnectionInfo() публичный Метод

Invoke the action asynchronously
Returns immediately and will run the client-specified callback when the action later completes. Any output arguments can then be retrieved by calling EndGetCurrentConnectionInfo().
public BeginGetCurrentConnectionInfo ( int aConnectionID, CallbackAsyncComplete aCallback ) : void
aConnectionID int
aCallback CallbackAsyncComplete Delegate to run when the action completes. /// This is guaranteed to be run but may indicate an error
Результат void

BeginGetProtocolInfo() публичный Метод

Invoke the action asynchronously
Returns immediately and will run the client-specified callback when the action later completes. Any output arguments can then be retrieved by calling EndGetProtocolInfo().
public BeginGetProtocolInfo ( CallbackAsyncComplete aCallback ) : void
aCallback CallbackAsyncComplete Delegate to run when the action completes. /// This is guaranteed to be run but may indicate an error
Результат void

BeginPrepareForConnection() публичный Метод

Invoke the action asynchronously
Returns immediately and will run the client-specified callback when the action later completes. Any output arguments can then be retrieved by calling EndPrepareForConnection().
public BeginPrepareForConnection ( String aRemoteProtocolInfo, String aPeerConnectionManager, int aPeerConnectionID, String aDirection, CallbackAsyncComplete aCallback ) : void
aRemoteProtocolInfo String
aPeerConnectionManager String
aPeerConnectionID int
aDirection String
aCallback CallbackAsyncComplete Delegate to run when the action completes. /// This is guaranteed to be run but may indicate an error
Результат void

CpProxyUpnpOrgConnectionManager1() публичный Метод

Constructor
Use CpProxy::[Un]Subscribe() to enable/disable querying of state variable and reporting of their changes.
public CpProxyUpnpOrgConnectionManager1 ( ICpDevice aDevice ) : System
aDevice ICpDevice The device to use
Результат System

Dispose() публичный Метод

Must be called for each class instance. Must be called before Core.Library.Close().
public Dispose ( ) : void
Результат void

EndConnectionComplete() публичный Метод

Retrieve the output arguments from an asynchronously invoked action.
This may only be called from the callback set in the above Begin function.
public EndConnectionComplete ( IntPtr aAsyncHandle ) : void
aAsyncHandle System.IntPtr Argument passed to the delegate set in the above Begin function
Результат void

EndGetCurrentConnectionIDs() публичный Метод

Retrieve the output arguments from an asynchronously invoked action.
This may only be called from the callback set in the above Begin function.
public EndGetCurrentConnectionIDs ( IntPtr aAsyncHandle, String &aConnectionIDs ) : void
aAsyncHandle System.IntPtr Argument passed to the delegate set in the above Begin function
aConnectionIDs String
Результат void

EndGetCurrentConnectionInfo() публичный Метод

Retrieve the output arguments from an asynchronously invoked action.
This may only be called from the callback set in the above Begin function.
public EndGetCurrentConnectionInfo ( IntPtr aAsyncHandle, int &aRcsID, int &aAVTransportID, String &aProtocolInfo, String &aPeerConnectionManager, int &aPeerConnectionID, String &aDirection, String &aStatus ) : void
aAsyncHandle System.IntPtr Argument passed to the delegate set in the above Begin function
aRcsID int
aAVTransportID int
aProtocolInfo String
aPeerConnectionManager String
aPeerConnectionID int
aDirection String
aStatus String
Результат void

EndGetProtocolInfo() публичный Метод

Retrieve the output arguments from an asynchronously invoked action.
This may only be called from the callback set in the above Begin function.
public EndGetProtocolInfo ( IntPtr aAsyncHandle, String &aSource, String &aSink ) : void
aAsyncHandle System.IntPtr Argument passed to the delegate set in the above Begin function
aSource String
aSink String
Результат void

EndPrepareForConnection() публичный Метод

Retrieve the output arguments from an asynchronously invoked action.
This may only be called from the callback set in the above Begin function.
public EndPrepareForConnection ( IntPtr aAsyncHandle, int &aConnectionID, int &aAVTransportID, int &aRcsID ) : void
aAsyncHandle System.IntPtr Argument passed to the delegate set in the above Begin function
aConnectionID int
aAVTransportID int
aRcsID int
Результат void

PropertyCurrentConnectionIDs() публичный Метод

Query the value of the CurrentConnectionIDs property.
This function is threadsafe and can only be called if Subscribe() has been called and a first eventing callback received more recently than any call to Unsubscribe().
public PropertyCurrentConnectionIDs ( ) : String
Результат String

PropertySinkProtocolInfo() публичный Метод

Query the value of the SinkProtocolInfo property.
This function is threadsafe and can only be called if Subscribe() has been called and a first eventing callback received more recently than any call to Unsubscribe().
public PropertySinkProtocolInfo ( ) : String
Результат String

PropertySourceProtocolInfo() публичный Метод

Query the value of the SourceProtocolInfo property.
This function is threadsafe and can only be called if Subscribe() has been called and a first eventing callback received more recently than any call to Unsubscribe().
public PropertySourceProtocolInfo ( ) : String
Результат String

SetPropertyCurrentConnectionIDsChanged() публичный Метод

Set a delegate to be run when the CurrentConnectionIDs state variable changes.
Callbacks may be run in different threads but callbacks for a CpProxyUpnpOrgConnectionManager1 instance will not overlap.
public SetPropertyCurrentConnectionIDsChanged ( System aCurrentConnectionIDsChanged ) : void
aCurrentConnectionIDsChanged System The delegate to run when the state variable changes
Результат void

SetPropertySinkProtocolInfoChanged() публичный Метод

Set a delegate to be run when the SinkProtocolInfo state variable changes.
Callbacks may be run in different threads but callbacks for a CpProxyUpnpOrgConnectionManager1 instance will not overlap.
public SetPropertySinkProtocolInfoChanged ( System aSinkProtocolInfoChanged ) : void
aSinkProtocolInfoChanged System The delegate to run when the state variable changes
Результат void

SetPropertySourceProtocolInfoChanged() публичный Метод

Set a delegate to be run when the SourceProtocolInfo state variable changes.
Callbacks may be run in different threads but callbacks for a CpProxyUpnpOrgConnectionManager1 instance will not overlap.
public SetPropertySourceProtocolInfoChanged ( System aSourceProtocolInfoChanged ) : void
aSourceProtocolInfoChanged System The delegate to run when the state variable changes
Результат void

SyncConnectionComplete() публичный Метод

Invoke the action synchronously
Blocks until the action has been processed on the device and sets any output arguments
public SyncConnectionComplete ( int aConnectionID ) : void
aConnectionID int
Результат void

SyncGetCurrentConnectionIDs() публичный Метод

Invoke the action synchronously
Blocks until the action has been processed on the device and sets any output arguments
public SyncGetCurrentConnectionIDs ( String &aConnectionIDs ) : void
aConnectionIDs String
Результат void

SyncGetCurrentConnectionInfo() публичный Метод

Invoke the action synchronously
Blocks until the action has been processed on the device and sets any output arguments
public SyncGetCurrentConnectionInfo ( int aConnectionID, int &aRcsID, int &aAVTransportID, String &aProtocolInfo, String &aPeerConnectionManager, int &aPeerConnectionID, String &aDirection, String &aStatus ) : void
aConnectionID int
aRcsID int
aAVTransportID int
aProtocolInfo String
aPeerConnectionManager String
aPeerConnectionID int
aDirection String
aStatus String
Результат void

SyncGetProtocolInfo() публичный Метод

Invoke the action synchronously
Blocks until the action has been processed on the device and sets any output arguments
public SyncGetProtocolInfo ( String &aSource, String &aSink ) : void
aSource String
aSink String
Результат void

SyncPrepareForConnection() публичный Метод

Invoke the action synchronously
Blocks until the action has been processed on the device and sets any output arguments
public SyncPrepareForConnection ( String aRemoteProtocolInfo, String aPeerConnectionManager, int aPeerConnectionID, String aDirection, int &aConnectionID, int &aAVTransportID, int &aRcsID ) : void
aRemoteProtocolInfo String
aPeerConnectionManager String
aPeerConnectionID int
aDirection String
aConnectionID int
aAVTransportID int
aRcsID int
Результат void