Table of Contents

Class SocketListener

Namespace
Gio.Internal
Assembly
Gio-2.0.dll
public class SocketListener
Inheritance
SocketListener
Inherited Members

Methods

Accept(IntPtr, out IntPtr, IntPtr, out ErrorOwnedHandle)

Calls native method g_socket_listener_accept. Version: 2.22

[Version("2.22")]
public static extern IntPtr Accept(IntPtr listener, out IntPtr sourceObject, IntPtr cancellable, out ErrorOwnedHandle error)

Parameters

listener IntPtr

Transfer ownership: None Nullable: False

sourceObject IntPtr

Transfer ownership: None Nullable: True

cancellable IntPtr

Transfer ownership: None Nullable: True

error ErrorOwnedHandle

Returns

IntPtr

Transfer ownership: Full Nullable: False

AcceptAsync(IntPtr, IntPtr, AsyncReadyCallback, IntPtr)

Calls native method g_socket_listener_accept_async. Version: 2.22

[Version("2.22")]
public static extern void AcceptAsync(IntPtr listener, IntPtr cancellable, AsyncReadyCallback callback, IntPtr userData)

Parameters

listener IntPtr

Transfer ownership: None Nullable: False

cancellable IntPtr

Transfer ownership: None Nullable: True

callback AsyncReadyCallback

Transfer ownership: None Nullable: True

userData IntPtr

Transfer ownership: None Nullable: True

AcceptFinish(IntPtr, IntPtr, out IntPtr, out ErrorOwnedHandle)

Calls native method g_socket_listener_accept_finish. Version: 2.22

[Version("2.22")]
public static extern IntPtr AcceptFinish(IntPtr listener, IntPtr result, out IntPtr sourceObject, out ErrorOwnedHandle error)

Parameters

listener IntPtr

Transfer ownership: None Nullable: False

result IntPtr

Transfer ownership: None Nullable: False

sourceObject IntPtr

Transfer ownership: None Nullable: True

error ErrorOwnedHandle

Returns

IntPtr

Transfer ownership: Full Nullable: False

AcceptSocket(IntPtr, out IntPtr, IntPtr, out ErrorOwnedHandle)

Calls native method g_socket_listener_accept_socket. Version: 2.22

[Version("2.22")]
public static extern IntPtr AcceptSocket(IntPtr listener, out IntPtr sourceObject, IntPtr cancellable, out ErrorOwnedHandle error)

Parameters

listener IntPtr

Transfer ownership: None Nullable: False

sourceObject IntPtr

Transfer ownership: None Nullable: True

cancellable IntPtr

Transfer ownership: None Nullable: True

error ErrorOwnedHandle

Returns

IntPtr

Transfer ownership: Full Nullable: False

AcceptSocketAsync(IntPtr, IntPtr, AsyncReadyCallback, IntPtr)

Calls native method g_socket_listener_accept_socket_async. Version: 2.22

[Version("2.22")]
public static extern void AcceptSocketAsync(IntPtr listener, IntPtr cancellable, AsyncReadyCallback callback, IntPtr userData)

Parameters

listener IntPtr

Transfer ownership: None Nullable: False

cancellable IntPtr

Transfer ownership: None Nullable: True

callback AsyncReadyCallback

Transfer ownership: None Nullable: True

userData IntPtr

Transfer ownership: None Nullable: True

AcceptSocketFinish(IntPtr, IntPtr, out IntPtr, out ErrorOwnedHandle)

Calls native method g_socket_listener_accept_socket_finish. Version: 2.22

[Version("2.22")]
public static extern IntPtr AcceptSocketFinish(IntPtr listener, IntPtr result, out IntPtr sourceObject, out ErrorOwnedHandle error)

Parameters

listener IntPtr

Transfer ownership: None Nullable: False

result IntPtr

Transfer ownership: None Nullable: False

sourceObject IntPtr

Transfer ownership: None Nullable: True

error ErrorOwnedHandle

Returns

IntPtr

Transfer ownership: Full Nullable: False

AddAddress(IntPtr, IntPtr, SocketType, SocketProtocol, IntPtr, out IntPtr, out ErrorOwnedHandle)

Calls native method g_socket_listener_add_address. Version: 2.22

[Version("2.22")]
public static extern bool AddAddress(IntPtr listener, IntPtr address, SocketType type, SocketProtocol protocol, IntPtr sourceObject, out IntPtr effectiveAddress, out ErrorOwnedHandle error)

Parameters

listener IntPtr

Transfer ownership: None Nullable: False

address IntPtr

Transfer ownership: None Nullable: False

type SocketType

Transfer ownership: None Nullable: False

protocol SocketProtocol

Transfer ownership: None Nullable: False

sourceObject IntPtr

Transfer ownership: None Nullable: True

effectiveAddress IntPtr

Transfer ownership: Full Nullable: False

error ErrorOwnedHandle

Returns

bool

Transfer ownership: None Nullable: False

AddAnyInetPort(IntPtr, IntPtr, out ErrorOwnedHandle)

Calls native method g_socket_listener_add_any_inet_port. Version: 2.24

[Version("2.24")]
public static extern ushort AddAnyInetPort(IntPtr listener, IntPtr sourceObject, out ErrorOwnedHandle error)

Parameters

listener IntPtr

Transfer ownership: None Nullable: False

sourceObject IntPtr

Transfer ownership: None Nullable: True

error ErrorOwnedHandle

Returns

ushort

Transfer ownership: None Nullable: False

AddInetPort(IntPtr, ushort, IntPtr, out ErrorOwnedHandle)

Calls native method g_socket_listener_add_inet_port. Version: 2.22

[Version("2.22")]
public static extern bool AddInetPort(IntPtr listener, ushort port, IntPtr sourceObject, out ErrorOwnedHandle error)

Parameters

listener IntPtr

Transfer ownership: None Nullable: False

port ushort

Transfer ownership: None Nullable: False

sourceObject IntPtr

Transfer ownership: None Nullable: True

error ErrorOwnedHandle

Returns

bool

Transfer ownership: None Nullable: False

AddSocket(IntPtr, IntPtr, IntPtr, out ErrorOwnedHandle)

Calls native method g_socket_listener_add_socket. Version: 2.22

[Version("2.22")]
public static extern bool AddSocket(IntPtr listener, IntPtr socket, IntPtr sourceObject, out ErrorOwnedHandle error)

Parameters

listener IntPtr

Transfer ownership: None Nullable: False

socket IntPtr

Transfer ownership: None Nullable: False

sourceObject IntPtr

Transfer ownership: None Nullable: True

error ErrorOwnedHandle

Returns

bool

Transfer ownership: None Nullable: False

Close(IntPtr)

Calls native method g_socket_listener_close. Version: 2.22

[Version("2.22")]
public static extern void Close(IntPtr listener)

Parameters

listener IntPtr

Transfer ownership: None Nullable: False

GetGType()

Calls native function g_socket_listener_get_type.

public static extern nuint GetGType()

Returns

nuint

Transfer ownership: None Nullable: False

New()

Calls native constructor g_socket_listener_new. Version: 2.22

[Version("2.22")]
public static extern IntPtr New()

Returns

IntPtr

Transfer ownership: Full Nullable: False

SetBacklog(IntPtr, int)

Calls native method g_socket_listener_set_backlog. Version: 2.22

[Version("2.22")]
public static extern void SetBacklog(IntPtr listener, int listenBacklog)

Parameters

listener IntPtr

Transfer ownership: None Nullable: False

listenBacklog int

Transfer ownership: None Nullable: False