Table of Contents

Class SocketService

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

Constructors

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

Parameters

constructArguments ConstructArgument[]

SocketService(CreationData)

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

Parameters

data CreationData

SocketService(SocketServiceHandle)

protected SocketService(SocketServiceHandle handle)

Parameters

handle SocketServiceHandle

Fields

ActivePropertyDefinition

public static readonly Property<bool, SocketService> ActivePropertyDefinition

Field Value

Property<bool, SocketService>

IncomingSignal

Signal Descriptor for OnIncoming.

public static readonly ReturningSignal<SocketService, SocketService.IncomingSignalArgs, bool> IncomingSignal

Field Value

ReturningSignal<SocketService, SocketService.IncomingSignalArgs, bool>

Properties

Active

public bool Active { get; set; }

Property Value

bool

Methods

GetGType()

public static Type GetGType()

Returns

Type

IsActive()

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

Returns

bool

New()

[Version("2.22")]
public static SocketService New()

Returns

SocketService

NewFromPointer(nint, bool)

Creates a new managed SocketService instance for a given pointer.

public static SocketService NewFromPointer(nint ptr, bool ownsHandle)

Parameters

ptr nint
ownsHandle bool

Returns

SocketService

NewWithProperties(ConstructArgument[])

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

public static SocketService NewWithProperties(ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

The properties to set.

Returns

SocketService

Start()

[Version("2.22")]
public void Start()

Stop()

[Version("2.22")]
public void Stop()

Events

OnIncoming

public event ReturningSignalHandler<SocketService, SocketService.IncomingSignalArgs, bool> OnIncoming

Event Type

ReturningSignalHandler<SocketService, SocketService.IncomingSignalArgs, bool>