Show / Hide Table of Contents

Class ZitiConnection

Represents the connection to the Ziti Network.

Inheritance
System.Object
ZitiConnection
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: OpenZiti
Assembly: Ziti.NET.Standard.dll
Syntax
public class ZitiConnection

Constructors

| Improve this Doc View Source

ZitiConnection(ZitiService, ZitiContext, Object)

The only constructor for ZitiConnection. A valid ZitiService and ZitiContext must be provided.

Declaration
public ZitiConnection(ZitiService service, ZitiContext context, object connectionContext)
Parameters
Type Name Description
ZitiService service

The ZitiService to construct a ZitiConnection with

ZitiContext context
System.Object connectionContext

Additional context that needs to be stored along with the ZitiConnection

Properties

| Improve this Doc View Source

ConnectionContext

Any additional context that needs to be stored along with the ZitiConnection. Must be supplied when the ZitiConnection is created.

Declaration
public object ConnectionContext { get; }
Property Value
Type Description
System.Object
| Improve this Doc View Source

Service

Declaration
public ZitiService Service { get; }
Property Value
Type Description
ZitiService

Methods

| Improve this Doc View Source

Accept(OnClientAccept, OnZitiClientData)

Declaration
public int Accept(OnClientAccept onAccept, OnZitiClientData onClientData)
Parameters
Type Name Description
OnClientAccept onAccept
OnZitiClientData onClientData
Returns
Type Description
System.Int32
| Improve this Doc View Source

CheckConnection()

Declaration
public bool CheckConnection()
Returns
Type Description
System.Boolean
| Improve this Doc View Source

Close()

Declaration
public void Close()
| Improve this Doc View Source

Dial(OnZitiConnected, OnZitiDataReceived)

Declaration
public void Dial(OnZitiConnected onConnected, OnZitiDataReceived dataReceived)
Parameters
Type Name Description
OnZitiConnected onConnected
OnZitiDataReceived dataReceived
| Improve this Doc View Source

Finalize()

Declaration
protected void Finalize()
| Improve this Doc View Source

MarkAsStream()

Declaration
public void MarkAsStream()
| Improve this Doc View Source

Write(Byte[], OnZitiDataWritten, Object)

Declaration
public int Write(byte[] data, OnZitiDataWritten afterDataWritten, object context)
Parameters
Type Name Description
System.Byte[] data
OnZitiDataWritten afterDataWritten
System.Object context
Returns
Type Description
System.Int32
| Improve this Doc View Source

Write(Byte[], Int32, OnZitiDataWritten, Object)

Declaration
public int Write(byte[] data, int len, OnZitiDataWritten afterDataWritten, object context)
Parameters
Type Name Description
System.Byte[] data
System.Int32 len
OnZitiDataWritten afterDataWritten
System.Object context
Returns
Type Description
System.Int32
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX