Table of Contents

Class WebsocketConnection

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

Methods

Close(IntPtr, ushort, NullableUtf8StringHandle)

Calls native method soup_websocket_connection_close.

public static extern void Close(IntPtr self, ushort code, NullableUtf8StringHandle data)

Parameters

self IntPtr

Transfer ownership: None Nullable: False

code ushort

Transfer ownership: None Nullable: False

data NullableUtf8StringHandle

Transfer ownership: None Nullable: True

GetCloseCode(IntPtr)

Calls native method soup_websocket_connection_get_close_code.

public static extern ushort GetCloseCode(IntPtr self)

Parameters

self IntPtr

Transfer ownership: None Nullable: False

Returns

ushort

Transfer ownership: None Nullable: False

GetCloseData(IntPtr)

Calls native method soup_websocket_connection_get_close_data.

public static extern NonNullableUtf8StringUnownedHandle GetCloseData(IntPtr self)

Parameters

self IntPtr

Transfer ownership: None Nullable: False

Returns

NonNullableUtf8StringUnownedHandle

Transfer ownership: None Nullable: False

GetConnectionType(IntPtr)

Calls native method soup_websocket_connection_get_connection_type.

public static extern WebsocketConnectionType GetConnectionType(IntPtr self)

Parameters

self IntPtr

Transfer ownership: None Nullable: False

Returns

WebsocketConnectionType

Transfer ownership: None Nullable: False

GetExtensions(IntPtr)

Calls native method soup_websocket_connection_get_extensions.

public static extern ListUnownedHandle GetExtensions(IntPtr self)

Parameters

self IntPtr

Transfer ownership: None Nullable: False

Returns

ListUnownedHandle

Transfer ownership: None Nullable: False

GetGType()

Calls native function soup_websocket_connection_get_type.

public static extern nuint GetGType()

Returns

nuint

Transfer ownership: None Nullable: False

GetIoStream(IntPtr)

Calls native method soup_websocket_connection_get_io_stream.

public static extern IntPtr GetIoStream(IntPtr self)

Parameters

self IntPtr

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: None Nullable: False

GetKeepaliveInterval(IntPtr)

Calls native method soup_websocket_connection_get_keepalive_interval.

public static extern uint GetKeepaliveInterval(IntPtr self)

Parameters

self IntPtr

Transfer ownership: None Nullable: False

Returns

uint

Transfer ownership: None Nullable: False

GetMaxIncomingPayloadSize(IntPtr)

Calls native method soup_websocket_connection_get_max_incoming_payload_size.

public static extern ulong GetMaxIncomingPayloadSize(IntPtr self)

Parameters

self IntPtr

Transfer ownership: None Nullable: False

Returns

ulong

Transfer ownership: None Nullable: False

GetOrigin(IntPtr)

Calls native method soup_websocket_connection_get_origin.

public static extern NullableUtf8StringUnownedHandle GetOrigin(IntPtr self)

Parameters

self IntPtr

Transfer ownership: None Nullable: False

Returns

NullableUtf8StringUnownedHandle

Transfer ownership: None Nullable: True

GetProtocol(IntPtr)

Calls native method soup_websocket_connection_get_protocol.

public static extern NullableUtf8StringUnownedHandle GetProtocol(IntPtr self)

Parameters

self IntPtr

Transfer ownership: None Nullable: False

Returns

NullableUtf8StringUnownedHandle

Transfer ownership: None Nullable: True

GetState(IntPtr)

Calls native method soup_websocket_connection_get_state.

public static extern WebsocketState GetState(IntPtr self)

Parameters

self IntPtr

Transfer ownership: None Nullable: False

Returns

WebsocketState

Transfer ownership: None Nullable: False

GetUri(IntPtr)

Calls native method soup_websocket_connection_get_uri.

public static extern UriUnownedHandle GetUri(IntPtr self)

Parameters

self IntPtr

Transfer ownership: None Nullable: False

Returns

UriUnownedHandle

Transfer ownership: None Nullable: False

SendBinary(IntPtr, ref byte, nuint)

Calls native method soup_websocket_connection_send_binary.

public static extern void SendBinary(IntPtr self, ref byte data, nuint length)

Parameters

self IntPtr

Transfer ownership: None Nullable: False

data byte

Transfer ownership: None Nullable: True

length nuint

Transfer ownership: None Nullable: False

SendMessage(IntPtr, WebsocketDataType, BytesHandle)

Calls native method soup_websocket_connection_send_message.

public static extern void SendMessage(IntPtr self, WebsocketDataType type, BytesHandle message)

Parameters

self IntPtr

Transfer ownership: None Nullable: False

type WebsocketDataType

Transfer ownership: None Nullable: False

message BytesHandle

Transfer ownership: None Nullable: False

SendText(IntPtr, NonNullableUtf8StringHandle)

Calls native method soup_websocket_connection_send_text.

public static extern void SendText(IntPtr self, NonNullableUtf8StringHandle text)

Parameters

self IntPtr

Transfer ownership: None Nullable: False

text NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

SetKeepaliveInterval(IntPtr, uint)

Calls native method soup_websocket_connection_set_keepalive_interval.

public static extern void SetKeepaliveInterval(IntPtr self, uint interval)

Parameters

self IntPtr

Transfer ownership: None Nullable: False

interval uint

Transfer ownership: None Nullable: False

SetMaxIncomingPayloadSize(IntPtr, ulong)

Calls native method soup_websocket_connection_set_max_incoming_payload_size.

public static extern void SetMaxIncomingPayloadSize(IntPtr self, ulong maxIncomingPayloadSize)

Parameters

self IntPtr

Transfer ownership: None Nullable: False

maxIncomingPayloadSize ulong

Transfer ownership: None Nullable: False