C# Class Network.NWFramer

Inheritance: NativeObject
Exibir arquivo Open project: xamarin/xamarin-macios Class Usage Examples

Private Properties

Property Type Description
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

Public Methods

Method Description
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

Private Methods

Method Description
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

Method Details

CreateMessage() public method

public CreateMessage ( ) : Network.NWFramerMessage
return Network.NWFramerMessage

CreateOptions() public static method

public static CreateOptions ( Network.NWProtocolDefinition protocolDefinition ) : T?
protocolDefinition Network.NWProtocolDefinition
return T?

DeliverInput() public method

public DeliverInput ( ReadOnlySpan buffer, Network.NWFramerMessage message, bool isComplete ) : void
buffer ReadOnlySpan
message Network.NWFramerMessage
isComplete bool
return void

DeliverInputNoCopy() public method

public DeliverInputNoCopy ( nuint length, Network.NWFramerMessage message, bool isComplete ) : bool
length nuint
message Network.NWFramerMessage
isComplete bool
return bool

MarkFailedWithError() public method

public MarkFailedWithError ( int errorCode ) : void
errorCode int
return void

MarkReady() public method

public MarkReady ( ) : void
return void

PassThroughInput() public method

public PassThroughInput ( ) : void
return void

PassThroughOutput() public method

public PassThroughOutput ( ) : void
return void

PrependApplicationProtocol() public method

public PrependApplicationProtocol ( Network.NWProtocolOptions options ) : bool
options Network.NWProtocolOptions
return bool

ScheduleWakeup() public method

public ScheduleWakeup ( ulong milliseconds ) : void
milliseconds ulong
return void

WriteOutput() public method

public WriteOutput ( DispatchData data ) : void
data DispatchData
return void

WriteOutput() public method

public WriteOutput ( ReadOnlySpan data ) : void
data ReadOnlySpan
return void

WriteOutputNoCopy() public method

public WriteOutputNoCopy ( nuint outputLength ) : bool
outputLength nuint
return bool