Table of Contents

Class ThreadedSocketService

Namespace
Gio
Assembly
Gio-2.0.dll
public class ThreadedSocketService : SocketService, IDisposable, NativeObject, GTypeProvider, InstanceFactory
Inheritance
ThreadedSocketService
Implements
Inherited Members

Constructors

ThreadedSocketService(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 ThreadedSocketService(params ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

ThreadedSocketService(CreationData)

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

Parameters

data CreationData

ThreadedSocketService(ThreadedSocketServiceHandle)

protected ThreadedSocketService(ThreadedSocketServiceHandle handle)

Parameters

handle ThreadedSocketServiceHandle

Fields

MaxThreadsPropertyDefinition

public static readonly Property<int, ThreadedSocketService> MaxThreadsPropertyDefinition

Field Value

Property<int, ThreadedSocketService>

RunSignal

Signal Descriptor for OnRun.

public static readonly ReturningSignal<ThreadedSocketService, ThreadedSocketService.RunSignalArgs, bool> RunSignal

Field Value

ReturningSignal<ThreadedSocketService, ThreadedSocketService.RunSignalArgs, bool>

Properties

MaxThreads

public int MaxThreads { get; }

Property Value

int

Methods

GetGType()

public static Type GetGType()

Returns

Type

New(int)

[Version("2.22")]
public static ThreadedSocketService New(int maxThreads)

Parameters

maxThreads int

Returns

ThreadedSocketService

NewFromPointer(nint, bool)

Creates a new managed ThreadedSocketService instance for a given pointer.

public static ThreadedSocketService NewFromPointer(nint ptr, bool ownsHandle)

Parameters

ptr nint
ownsHandle bool

Returns

ThreadedSocketService

NewWithProperties(ConstructArgument[])

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

public static ThreadedSocketService NewWithProperties(ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

The properties to set.

Returns

ThreadedSocketService

Events

OnRun

public event ReturningSignalHandler<ThreadedSocketService, ThreadedSocketService.RunSignalArgs, bool> OnRun

Event Type

ReturningSignalHandler<ThreadedSocketService, ThreadedSocketService.RunSignalArgs, bool>