Edit

Share via


StreamUpgradeAcceptor Class

Definition

To implement a custom upgrade acceptor, inherited from this abstract base class.

public ref class StreamUpgradeAcceptor abstract
public abstract class StreamUpgradeAcceptor
type StreamUpgradeAcceptor = class
Public MustInherit Class StreamUpgradeAcceptor
Inheritance
StreamUpgradeAcceptor
Derived

Remarks

An example of a stream upgrade is to build a compression stream directly on top of the transport stream.

This class is used with StreamUpgradeInitiator and StreamUpgradeProvider to implement a custom stream upgrade.

For a detailed description of the upgrade process, see StreamUpgradeProvider.

Constructors

StreamUpgradeAcceptor()

Initializes a new instance of the StreamUpgradeAcceptor class.

Methods

AcceptUpgrade(Stream)

Upgrades the transport stream and returns the upgraded stream.

BeginAcceptUpgrade(Stream, AsyncCallback, Object)

Asynchronous version of AcceptUpgrade(Stream).

CanUpgrade(String)

Determines whether the upgrade requested is supported by this upgrade acceptor.

EndAcceptUpgrade(IAsyncResult)

Asynchronous version of AcceptUpgrade(Stream).

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to

See also