Table of Contents

Class TcpConnection

Namespace
Gio
Assembly
Gio-2.0.dll
public class TcpConnection : SocketConnection, IDisposable, NativeObject, GTypeProvider, InstanceFactory
Inheritance
TcpConnection
Implements
Derived
Inherited Members

Constructors

TcpConnection(params ConstructArgument[])

[Obsolete("Regular C# constructors on native classes will be removed in a future version. Please see the linked documentation for more details. It contains scenarios and possible solutions to prepare for the upcoming changes.", DiagnosticId = "GirCore1007", UrlFormat = "https://gircore.github.io/docs/integration/diagnostic/1007.html")]
public TcpConnection(params ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

TcpConnection(CreationData)

[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected TcpConnection(CreationData data)

Parameters

data CreationData

TcpConnection(TcpConnectionHandle)

protected TcpConnection(TcpConnectionHandle handle)

Parameters

handle TcpConnectionHandle

Fields

GracefulDisconnectPropertyDefinition

public static readonly Property<bool, TcpConnection> GracefulDisconnectPropertyDefinition

Field Value

Property<bool, TcpConnection>

Properties

GracefulDisconnect

public bool GracefulDisconnect { get; set; }

Property Value

bool

Methods

GetGType()

public static Type GetGType()

Returns

Type

GetGracefulDisconnect()

[Version("2.22")]
public bool GetGracefulDisconnect()

Returns

bool

NewFromPointer(nint, bool)

Creates a new managed TcpConnection instance for a given pointer.

public static TcpConnection NewFromPointer(nint ptr, bool ownsHandle)

Parameters

ptr nint
ownsHandle bool

Returns

TcpConnection

NewWithProperties(ConstructArgument[])

Creates a new TcpConnection and sets the properties specified by the construct arguments.

public static TcpConnection NewWithProperties(ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

The properties to set.

Returns

TcpConnection

SetGracefulDisconnect(bool)

[Version("2.22")]
public void SetGracefulDisconnect(bool gracefulDisconnect)

Parameters

gracefulDisconnect bool