C# Class OpenHome.Net.ControlPoint.Proxies.CpProxyUpnpOrgConnectionManager1

Proxy for the upnp.org:ConnectionManager:1 UPnP service
Inheritance: OpenHome.Net.ControlPoint.CpProxy, IDisposable, ICpProxyUpnpOrgConnectionManager1
Afficher le fichier Open project: openhome/ohNet Class Usage Examples

Méthodes publiques

Méthode Description
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

Private Methods

Méthode Description
CurrentConnectionIDsPropertyChanged ( ) : void
SinkProtocolInfoPropertyChanged ( ) : void
SourceProtocolInfoPropertyChanged ( ) : void

Method Details

BeginConnectionComplete() public méthode

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
Résultat void

BeginGetCurrentConnectionIDs() public méthode

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
Résultat void

BeginGetCurrentConnectionInfo() public méthode

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
Résultat void

BeginGetProtocolInfo() public méthode

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
Résultat void

BeginPrepareForConnection() public méthode

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
Résultat void

CpProxyUpnpOrgConnectionManager1() public méthode

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
Résultat System

Dispose() public méthode

Must be called for each class instance. Must be called before Core.Library.Close().
public Dispose ( ) : void
Résultat void

EndConnectionComplete() public méthode

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
Résultat void

EndGetCurrentConnectionIDs() public méthode

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
Résultat void

EndGetCurrentConnectionInfo() public méthode

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
Résultat void

EndGetProtocolInfo() public méthode

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
Résultat void

EndPrepareForConnection() public méthode

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
Résultat void

PropertyCurrentConnectionIDs() public méthode

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
Résultat String

PropertySinkProtocolInfo() public méthode

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
Résultat String

PropertySourceProtocolInfo() public méthode

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
Résultat String

SetPropertyCurrentConnectionIDsChanged() public méthode

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
Résultat void

SetPropertySinkProtocolInfoChanged() public méthode

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
Résultat void

SetPropertySourceProtocolInfoChanged() public méthode

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
Résultat void

SyncConnectionComplete() public méthode

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
Résultat void

SyncGetCurrentConnectionIDs() public méthode

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
Résultat void

SyncGetCurrentConnectionInfo() public méthode

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
Résultat void

SyncGetProtocolInfo() public méthode

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
Résultat void

SyncPrepareForConnection() public méthode

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
Résultat void