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
constructArgumentsConstructArgument[]
SocketService(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected SocketService(CreationData data)
Parameters
dataCreationData
SocketService(SocketServiceHandle)
protected SocketService(SocketServiceHandle handle)
Parameters
handleSocketServiceHandle
Fields
ActivePropertyDefinition
public static readonly Property<bool, SocketService> ActivePropertyDefinition
Field Value
IncomingSignal
Signal Descriptor for OnIncoming.
public static readonly ReturningSignal<SocketService, SocketService.IncomingSignalArgs, bool> IncomingSignal
Field Value
Properties
Active
public bool Active { get; set; }
Property Value
Methods
GetGType()
public static Type GetGType()
Returns
IsActive()
[Version("2.22")]
public bool IsActive()
Returns
New()
[Version("2.22")]
public static SocketService New()
Returns
NewFromPointer(nint, bool)
Creates a new managed SocketService instance for a given pointer.
public static SocketService NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new SocketService and sets the properties specified by the construct arguments.
public static SocketService NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.
Returns
Start()
[Version("2.22")]
public void Start()
Stop()
[Version("2.22")]
public void Stop()
Events
OnIncoming
public event ReturningSignalHandler<SocketService, SocketService.IncomingSignalArgs, bool> OnIncoming