Class WebsocketConnection
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
IntPtrTransfer ownership: None Nullable: False
code
ushortTransfer ownership: None Nullable: False
data
NullableUtf8StringHandleTransfer ownership: None Nullable: True
GetCloseCode(IntPtr)
Calls native method soup_websocket_connection_get_close_code.
public static extern ushort GetCloseCode(IntPtr self)
Parameters
self
IntPtrTransfer 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
IntPtrTransfer 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
IntPtrTransfer 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
IntPtrTransfer 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
IntPtrTransfer 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
IntPtrTransfer 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
IntPtrTransfer 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
IntPtrTransfer 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
IntPtrTransfer 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
IntPtrTransfer 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
IntPtrTransfer 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
IntPtrTransfer ownership: None Nullable: False
data
byteTransfer ownership: None Nullable: True
length
nuintTransfer 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
IntPtrTransfer ownership: None Nullable: False
type
WebsocketDataTypeTransfer ownership: None Nullable: False
message
BytesHandleTransfer 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
IntPtrTransfer ownership: None Nullable: False
text
NonNullableUtf8StringHandleTransfer 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
IntPtrTransfer ownership: None Nullable: False
interval
uintTransfer 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)