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
constructArgumentsConstructArgument[]
ThreadedSocketService(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected ThreadedSocketService(CreationData data)
Parameters
dataCreationData
ThreadedSocketService(ThreadedSocketServiceHandle)
protected ThreadedSocketService(ThreadedSocketServiceHandle handle)
Parameters
handleThreadedSocketServiceHandle
Fields
MaxThreadsPropertyDefinition
public static readonly Property<int, ThreadedSocketService> MaxThreadsPropertyDefinition
Field Value
RunSignal
Signal Descriptor for OnRun.
public static readonly ReturningSignal<ThreadedSocketService, ThreadedSocketService.RunSignalArgs, bool> RunSignal
Field Value
Properties
MaxThreads
public int MaxThreads { get; }
Property Value
Methods
GetGType()
public static Type GetGType()
Returns
New(int)
[Version("2.22")]
public static ThreadedSocketService New(int maxThreads)
Parameters
maxThreadsint
Returns
NewFromPointer(nint, bool)
Creates a new managed ThreadedSocketService instance for a given pointer.
public static ThreadedSocketService NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new ThreadedSocketService and sets the properties specified by the construct arguments.
public static ThreadedSocketService NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.
Returns
Events
OnRun
public event ReturningSignalHandler<ThreadedSocketService, ThreadedSocketService.RunSignalArgs, bool> OnRun