Class Server
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
IntPtrTransfer ownership: None Nullable: False
stream
IntPtrTransfer ownership: None Nullable: False
localAddr
IntPtrTransfer ownership: None Nullable: True
remoteAddr
IntPtrTransfer 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
IntPtrTransfer ownership: None Nullable: False
authDomain
IntPtrTransfer 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
IntPtrTransfer ownership: None Nullable: False
path
NullableUtf8StringHandleTransfer ownership: None Nullable: True
callback
ServerCallbackTransfer ownership: None Nullable: False
userData
IntPtrTransfer ownership: None Nullable: True
destroy
DestroyNotifyTransfer 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
IntPtrTransfer ownership: None Nullable: False
path
NullableUtf8StringHandleTransfer ownership: None Nullable: True
callback
ServerCallbackTransfer ownership: None Nullable: False
userData
IntPtrTransfer ownership: None Nullable: True
destroy
DestroyNotifyTransfer 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
IntPtrTransfer ownership: None Nullable: False
extensionType
TypeTransfer 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
IntPtrTransfer ownership: None Nullable: False
path
NullableUtf8StringHandleTransfer ownership: None Nullable: True
origin
NullableUtf8StringHandleTransfer ownership: None Nullable: True
protocols
Utf8StringArrayNullTerminatedHandleTransfer ownership: None Nullable: True
callback
ServerWebsocketCallbackTransfer ownership: None Nullable: False
userData
IntPtrTransfer ownership: None Nullable: True
destroy
DestroyNotifyTransfer ownership: None Nullable: False
Disconnect(IntPtr)
Calls native method soup_server_disconnect.
public static extern void Disconnect(IntPtr server)
Parameters
server
IntPtrTransfer 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
IntPtrTransfer 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
IntPtrTransfer 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
IntPtrTransfer 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
IntPtrTransfer 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
IntPtrTransfer 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
IntPtrTransfer ownership: None Nullable: False
address
IntPtrTransfer ownership: None Nullable: False
options
ServerListenOptionsTransfer 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
IntPtrTransfer ownership: None Nullable: False
port
uintTransfer ownership: None Nullable: False
options
ServerListenOptionsTransfer 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
IntPtrTransfer ownership: None Nullable: False
port
uintTransfer ownership: None Nullable: False
options
ServerListenOptionsTransfer 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
IntPtrTransfer ownership: None Nullable: False
socket
IntPtrTransfer ownership: None Nullable: False
options
ServerListenOptionsTransfer 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
IntPtrTransfer ownership: None Nullable: False
msg
IntPtrTransfer 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
IntPtrTransfer ownership: None Nullable: False
authDomain
IntPtrTransfer 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
IntPtrTransfer ownership: None Nullable: False
path
NonNullableUtf8StringHandleTransfer 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
IntPtrTransfer ownership: None Nullable: False
extensionType
TypeTransfer 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
IntPtrTransfer ownership: None Nullable: False
mode
TlsAuthenticationModeTransfer 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
IntPtrTransfer ownership: None Nullable: False
certificate
IntPtrTransfer 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
IntPtrTransfer ownership: None Nullable: False
tlsDatabase
IntPtrTransfer ownership: None Nullable: False
UnpauseMessage(IntPtr, IntPtr)
Calls native method soup_server_unpause_message.
public static extern void UnpauseMessage(IntPtr server, IntPtr msg)