Table of Contents

Class Server

Namespace
Soup.Internal
Assembly
Soup-3.0.dll
public class Server
Inheritance
Server
Inherited Members

Methods

AcceptIostream(IntPtr, IntPtr, IntPtr, IntPtr, out ErrorOwnedHandle)

Calls native method soup_server_accept_iostream.

public static extern bool AcceptIostream(IntPtr server, IntPtr stream, IntPtr localAddr, IntPtr remoteAddr, out ErrorOwnedHandle error)

Parameters

server IntPtr

Transfer ownership: None Nullable: False

stream IntPtr

Transfer ownership: None Nullable: False

localAddr IntPtr

Transfer ownership: None Nullable: True

remoteAddr IntPtr

Transfer ownership: None Nullable: True

error ErrorOwnedHandle

Returns

bool

Transfer ownership: None Nullable: False

AddAuthDomain(IntPtr, IntPtr)

Calls native method soup_server_add_auth_domain.

public static extern void AddAuthDomain(IntPtr server, IntPtr authDomain)

Parameters

server IntPtr

Transfer ownership: None Nullable: False

authDomain IntPtr

Transfer ownership: None Nullable: False

AddEarlyHandler(IntPtr, NullableUtf8StringHandle, ServerCallback, IntPtr, DestroyNotify)

Calls native method soup_server_add_early_handler.

public static extern void AddEarlyHandler(IntPtr server, NullableUtf8StringHandle path, ServerCallback callback, IntPtr userData, DestroyNotify destroy)

Parameters

server IntPtr

Transfer ownership: None Nullable: False

path NullableUtf8StringHandle

Transfer ownership: None Nullable: True

callback ServerCallback

Transfer ownership: None Nullable: False

userData IntPtr

Transfer ownership: None Nullable: True

destroy DestroyNotify

Transfer ownership: None Nullable: False

AddHandler(IntPtr, NullableUtf8StringHandle, ServerCallback, IntPtr, DestroyNotify)

Calls native method soup_server_add_handler.

public static extern void AddHandler(IntPtr server, NullableUtf8StringHandle path, ServerCallback callback, IntPtr userData, DestroyNotify destroy)

Parameters

server IntPtr

Transfer ownership: None Nullable: False

path NullableUtf8StringHandle

Transfer ownership: None Nullable: True

callback ServerCallback

Transfer ownership: None Nullable: False

userData IntPtr

Transfer ownership: None Nullable: True

destroy DestroyNotify

Transfer ownership: None Nullable: False

AddWebsocketExtension(IntPtr, Type)

Calls native method soup_server_add_websocket_extension.

public static extern void AddWebsocketExtension(IntPtr server, Type extensionType)

Parameters

server IntPtr

Transfer ownership: None Nullable: False

extensionType Type

Transfer ownership: None Nullable: False

AddWebsocketHandler(IntPtr, NullableUtf8StringHandle, NullableUtf8StringHandle, Utf8StringArrayNullTerminatedHandle, ServerWebsocketCallback, IntPtr, DestroyNotify)

Calls native method soup_server_add_websocket_handler.

public static extern void AddWebsocketHandler(IntPtr server, NullableUtf8StringHandle path, NullableUtf8StringHandle origin, Utf8StringArrayNullTerminatedHandle protocols, ServerWebsocketCallback callback, IntPtr userData, DestroyNotify destroy)

Parameters

server IntPtr

Transfer ownership: None Nullable: False

path NullableUtf8StringHandle

Transfer ownership: None Nullable: True

origin NullableUtf8StringHandle

Transfer ownership: None Nullable: True

protocols Utf8StringArrayNullTerminatedHandle

Transfer ownership: None Nullable: True

callback ServerWebsocketCallback

Transfer ownership: None Nullable: False

userData IntPtr

Transfer ownership: None Nullable: True

destroy DestroyNotify

Transfer ownership: None Nullable: False

Disconnect(IntPtr)

Calls native method soup_server_disconnect.

public static extern void Disconnect(IntPtr server)

Parameters

server IntPtr

Transfer ownership: None Nullable: False

GetGType()

Calls native function soup_server_get_type.

public static extern nuint GetGType()

Returns

nuint

Transfer ownership: None Nullable: False

GetTlsAuthMode(IntPtr)

Calls native method soup_server_get_tls_auth_mode.

public static extern TlsAuthenticationMode GetTlsAuthMode(IntPtr server)

Parameters

server IntPtr

Transfer ownership: None Nullable: False

Returns

TlsAuthenticationMode

Transfer ownership: None Nullable: False

GetTlsCertificate(IntPtr)

Calls native method soup_server_get_tls_certificate.

public static extern IntPtr GetTlsCertificate(IntPtr server)

Parameters

server IntPtr

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: None Nullable: True

GetTlsDatabase(IntPtr)

Calls native method soup_server_get_tls_database.

public static extern IntPtr GetTlsDatabase(IntPtr server)

Parameters

server IntPtr

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: None Nullable: True

GetUris(IntPtr)

Calls native method soup_server_get_uris.

public static extern SListOwnedHandle GetUris(IntPtr server)

Parameters

server IntPtr

Transfer ownership: None Nullable: False

Returns

SListOwnedHandle

Transfer ownership: Full Nullable: False

IsHttps(IntPtr)

Calls native method soup_server_is_https.

public static extern bool IsHttps(IntPtr server)

Parameters

server IntPtr

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

Listen(IntPtr, IntPtr, ServerListenOptions, out ErrorOwnedHandle)

Calls native method soup_server_listen.

public static extern bool Listen(IntPtr server, IntPtr address, ServerListenOptions options, out ErrorOwnedHandle error)

Parameters

server IntPtr

Transfer ownership: None Nullable: False

address IntPtr

Transfer ownership: None Nullable: False

options ServerListenOptions

Transfer ownership: None Nullable: False

error ErrorOwnedHandle

Returns

bool

Transfer ownership: None Nullable: False

ListenAll(IntPtr, uint, ServerListenOptions, out ErrorOwnedHandle)

Calls native method soup_server_listen_all.

public static extern bool ListenAll(IntPtr server, uint port, ServerListenOptions options, out ErrorOwnedHandle error)

Parameters

server IntPtr

Transfer ownership: None Nullable: False

port uint

Transfer ownership: None Nullable: False

options ServerListenOptions

Transfer ownership: None Nullable: False

error ErrorOwnedHandle

Returns

bool

Transfer ownership: None Nullable: False

ListenLocal(IntPtr, uint, ServerListenOptions, out ErrorOwnedHandle)

Calls native method soup_server_listen_local.

public static extern bool ListenLocal(IntPtr server, uint port, ServerListenOptions options, out ErrorOwnedHandle error)

Parameters

server IntPtr

Transfer ownership: None Nullable: False

port uint

Transfer ownership: None Nullable: False

options ServerListenOptions

Transfer ownership: None Nullable: False

error ErrorOwnedHandle

Returns

bool

Transfer ownership: None Nullable: False

ListenSocket(IntPtr, IntPtr, ServerListenOptions, out ErrorOwnedHandle)

Calls native method soup_server_listen_socket.

public static extern bool ListenSocket(IntPtr server, IntPtr socket, ServerListenOptions options, out ErrorOwnedHandle error)

Parameters

server IntPtr

Transfer ownership: None Nullable: False

socket IntPtr

Transfer ownership: None Nullable: False

options ServerListenOptions

Transfer ownership: None Nullable: False

error ErrorOwnedHandle

Returns

bool

Transfer ownership: None Nullable: False

PauseMessage(IntPtr, IntPtr)

Calls native method soup_server_pause_message.

public static extern void PauseMessage(IntPtr server, IntPtr msg)

Parameters

server IntPtr

Transfer ownership: None Nullable: False

msg IntPtr

Transfer ownership: None Nullable: False

RemoveAuthDomain(IntPtr, IntPtr)

Calls native method soup_server_remove_auth_domain.

public static extern void RemoveAuthDomain(IntPtr server, IntPtr authDomain)

Parameters

server IntPtr

Transfer ownership: None Nullable: False

authDomain IntPtr

Transfer ownership: None Nullable: False

RemoveHandler(IntPtr, NonNullableUtf8StringHandle)

Calls native method soup_server_remove_handler.

public static extern void RemoveHandler(IntPtr server, NonNullableUtf8StringHandle path)

Parameters

server IntPtr

Transfer ownership: None Nullable: False

path NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

RemoveWebsocketExtension(IntPtr, Type)

Calls native method soup_server_remove_websocket_extension.

public static extern void RemoveWebsocketExtension(IntPtr server, Type extensionType)

Parameters

server IntPtr

Transfer ownership: None Nullable: False

extensionType Type

Transfer ownership: None Nullable: False

SetTlsAuthMode(IntPtr, TlsAuthenticationMode)

Calls native method soup_server_set_tls_auth_mode.

public static extern void SetTlsAuthMode(IntPtr server, TlsAuthenticationMode mode)

Parameters

server IntPtr

Transfer ownership: None Nullable: False

mode TlsAuthenticationMode

Transfer ownership: None Nullable: False

SetTlsCertificate(IntPtr, IntPtr)

Calls native method soup_server_set_tls_certificate.

public static extern void SetTlsCertificate(IntPtr server, IntPtr certificate)

Parameters

server IntPtr

Transfer ownership: None Nullable: False

certificate IntPtr

Transfer ownership: None Nullable: False

SetTlsDatabase(IntPtr, IntPtr)

Calls native method soup_server_set_tls_database.

public static extern void SetTlsDatabase(IntPtr server, IntPtr tlsDatabase)

Parameters

server IntPtr

Transfer ownership: None Nullable: False

tlsDatabase IntPtr

Transfer ownership: None Nullable: False

UnpauseMessage(IntPtr, IntPtr)

Calls native method soup_server_unpause_message.

public static extern void UnpauseMessage(IntPtr server, IntPtr msg)

Parameters

server IntPtr

Transfer ownership: None Nullable: False

msg IntPtr

Transfer ownership: None Nullable: False