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
constructArgumentsConstructArgument[]
TcpConnection(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected TcpConnection(CreationData data)
Parameters
dataCreationData
TcpConnection(TcpConnectionHandle)
protected TcpConnection(TcpConnectionHandle handle)
Parameters
handleTcpConnectionHandle
Fields
GracefulDisconnectPropertyDefinition
public static readonly Property<bool, TcpConnection> GracefulDisconnectPropertyDefinition
Field Value
Properties
GracefulDisconnect
public bool GracefulDisconnect { get; set; }
Property Value
Methods
GetGType()
public static Type GetGType()
Returns
GetGracefulDisconnect()
[Version("2.22")]
public bool GetGracefulDisconnect()
Returns
NewFromPointer(nint, bool)
Creates a new managed TcpConnection instance for a given pointer.
public static TcpConnection NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new TcpConnection and sets the properties specified by the construct arguments.
public static TcpConnection NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.
Returns
SetGracefulDisconnect(bool)
[Version("2.22")]
public void SetGracefulDisconnect(bool gracefulDisconnect)
Parameters
gracefulDisconnectbool