C# Класс Network.NWFramer

Наследование: NativeObject
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
NWFramer System
ParseInput bool
ParseOutput bool
ScheduleAsync void
TrampolineCleanupHandler void
TrampolineInputHandler nuint
TrampolineOutputHandler void
TrampolineParseInputHandler nuint
TrampolineParseOutputHandler void
TrampolineScheduleHandler void
TrampolineStopHandler void
TrampolineWakeupHandler void
nw_framer_async void
nw_framer_copy_local_endpoint System.IntPtr
nw_framer_copy_parameters System.IntPtr
nw_framer_copy_remote_endpoint System.IntPtr
nw_framer_create_options System.IntPtr
nw_framer_deliver_input void
nw_framer_deliver_input_no_copy bool
nw_framer_mark_failed_with_error void
nw_framer_mark_ready void
nw_framer_message_create System.IntPtr
nw_framer_parse_input bool
nw_framer_parse_output bool
nw_framer_pass_through_input void
nw_framer_pass_through_output void
nw_framer_prepend_application_protocol bool
nw_framer_schedule_wakeup void
nw_framer_set_cleanup_handler void
nw_framer_set_input_handler void
nw_framer_set_output_handler void
nw_framer_set_stop_handler void
nw_framer_set_wakeup_handler void
nw_framer_write_output void
nw_framer_write_output_data void
nw_framer_write_output_no_copy bool

Открытые методы

Метод Описание
CreateMessage ( ) : Network.NWFramerMessage
CreateOptions ( Network.NWProtocolDefinition protocolDefinition ) : T?
DeliverInput ( ReadOnlySpan buffer, Network.NWFramerMessage message, bool isComplete ) : void
DeliverInputNoCopy ( nuint length, Network.NWFramerMessage message, bool isComplete ) : bool
MarkFailedWithError ( int errorCode ) : void
MarkReady ( ) : void
PassThroughInput ( ) : void
PassThroughOutput ( ) : void
PrependApplicationProtocol ( Network.NWProtocolOptions options ) : bool
ScheduleWakeup ( ulong milliseconds ) : void
WriteOutput ( DispatchData data ) : void
WriteOutput ( ReadOnlySpan data ) : void
WriteOutputNoCopy ( nuint outputLength ) : bool

Приватные методы

Метод Описание
NWFramer ( IntPtr handle, bool owns ) : System
ParseInput ( nuint minimumIncompleteLength, nuint maximumLength, Memory tempBuffer, NWFramerParseCompletionDelegate handler ) : bool
ParseOutput ( nuint minimumIncompleteLength, nuint maximumLength, Memory tempBuffer, Action handler ) : bool
ScheduleAsync ( Action handler ) : void
TrampolineCleanupHandler ( IntPtr block, IntPtr framer ) : void
TrampolineInputHandler ( IntPtr block, IntPtr framer ) : nuint
TrampolineOutputHandler ( IntPtr block, IntPtr framer, IntPtr message, nuint message_length, bool is_complete ) : void
TrampolineParseInputHandler ( IntPtr block, IntPtr buffer, nuint buffer_length, bool is_complete ) : nuint
TrampolineParseOutputHandler ( IntPtr block, IntPtr buffer, nuint buffer_length, bool is_complete ) : void
TrampolineScheduleHandler ( IntPtr block ) : void
TrampolineStopHandler ( IntPtr block, IntPtr framer ) : void
TrampolineWakeupHandler ( IntPtr block, IntPtr framer ) : void
nw_framer_async ( IntPtr framer, void* async_block ) : void
nw_framer_copy_local_endpoint ( IntPtr framer ) : IntPtr
nw_framer_copy_parameters ( IntPtr framer ) : IntPtr
nw_framer_copy_remote_endpoint ( IntPtr framer ) : IntPtr
nw_framer_create_options ( IntPtr framer_definition ) : IntPtr
nw_framer_deliver_input ( IntPtr framer, byte* input_buffer, nuint input_length, IntPtr message, bool is_complete ) : void
nw_framer_deliver_input_no_copy ( IntPtr framer, nuint input_length, IntPtr message, bool is_complete ) : bool
nw_framer_mark_failed_with_error ( IntPtr framer, int error_code ) : void
nw_framer_mark_ready ( IntPtr framer ) : void
nw_framer_message_create ( IntPtr framer ) : IntPtr
nw_framer_parse_input ( IntPtr framer, nuint minimum_incomplete_length, nuint maximum_length, byte* temp_buffer, BlockLiteral &parse ) : bool
nw_framer_parse_output ( IntPtr framer, nuint minimum_incomplete_length, nuint maximum_length, byte* temp_buffer, BlockLiteral &parse ) : bool
nw_framer_pass_through_input ( IntPtr framer ) : void
nw_framer_pass_through_output ( IntPtr framer ) : void
nw_framer_prepend_application_protocol ( IntPtr framer, IntPtr protocol_options ) : bool
nw_framer_schedule_wakeup ( IntPtr framer, ulong milliseconds ) : void
nw_framer_set_cleanup_handler ( IntPtr framer, void* cleanup_handler ) : void
nw_framer_set_input_handler ( IntPtr framer, void* input_handler ) : void
nw_framer_set_output_handler ( IntPtr framer, void* output_handler ) : void
nw_framer_set_stop_handler ( IntPtr framer, void* stop_handler ) : void
nw_framer_set_wakeup_handler ( IntPtr framer, void* wakeup_handler ) : void
nw_framer_write_output ( IntPtr framer, byte* output_buffer, nuint output_length ) : void
nw_framer_write_output_data ( IntPtr framer, IntPtr output_data ) : void
nw_framer_write_output_no_copy ( IntPtr framer, nuint output_length ) : bool

Описание методов

CreateMessage() публичный Метод

public CreateMessage ( ) : Network.NWFramerMessage
Результат Network.NWFramerMessage

CreateOptions() публичный статический Метод

public static CreateOptions ( Network.NWProtocolDefinition protocolDefinition ) : T?
protocolDefinition Network.NWProtocolDefinition
Результат T?

DeliverInput() публичный Метод

public DeliverInput ( ReadOnlySpan buffer, Network.NWFramerMessage message, bool isComplete ) : void
buffer ReadOnlySpan
message Network.NWFramerMessage
isComplete bool
Результат void

DeliverInputNoCopy() публичный Метод

public DeliverInputNoCopy ( nuint length, Network.NWFramerMessage message, bool isComplete ) : bool
length nuint
message Network.NWFramerMessage
isComplete bool
Результат bool

MarkFailedWithError() публичный Метод

public MarkFailedWithError ( int errorCode ) : void
errorCode int
Результат void

MarkReady() публичный Метод

public MarkReady ( ) : void
Результат void

PassThroughInput() публичный Метод

public PassThroughInput ( ) : void
Результат void

PassThroughOutput() публичный Метод

public PassThroughOutput ( ) : void
Результат void

PrependApplicationProtocol() публичный Метод

public PrependApplicationProtocol ( Network.NWProtocolOptions options ) : bool
options Network.NWProtocolOptions
Результат bool

ScheduleWakeup() публичный Метод

public ScheduleWakeup ( ulong milliseconds ) : void
milliseconds ulong
Результат void

WriteOutput() публичный Метод

public WriteOutput ( DispatchData data ) : void
data DispatchData
Результат void

WriteOutput() публичный Метод

public WriteOutput ( ReadOnlySpan data ) : void
data ReadOnlySpan
Результат void

WriteOutputNoCopy() публичный Метод

public WriteOutputNoCopy ( nuint outputLength ) : bool
outputLength nuint
Результат bool