C# Class Network.NWFramer

Inheritance: NativeObject
Afficher le fichier Open project: xamarin/xamarin-macios Class Usage Examples

Private Properties

Свойство 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

Méthodes publiques

Méthode 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

Méthode 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 méthode

public CreateMessage ( ) : Network.NWFramerMessage
Résultat Network.NWFramerMessage

CreateOptions() public static méthode

public static CreateOptions ( Network.NWProtocolDefinition protocolDefinition ) : T?
protocolDefinition Network.NWProtocolDefinition
Résultat T?

DeliverInput() public méthode

public DeliverInput ( ReadOnlySpan buffer, Network.NWFramerMessage message, bool isComplete ) : void
buffer ReadOnlySpan
message Network.NWFramerMessage
isComplete bool
Résultat void

DeliverInputNoCopy() public méthode

public DeliverInputNoCopy ( nuint length, Network.NWFramerMessage message, bool isComplete ) : bool
length nuint
message Network.NWFramerMessage
isComplete bool
Résultat bool

MarkFailedWithError() public méthode

public MarkFailedWithError ( int errorCode ) : void
errorCode int
Résultat void

MarkReady() public méthode

public MarkReady ( ) : void
Résultat void

PassThroughInput() public méthode

public PassThroughInput ( ) : void
Résultat void

PassThroughOutput() public méthode

public PassThroughOutput ( ) : void
Résultat void

PrependApplicationProtocol() public méthode

public PrependApplicationProtocol ( Network.NWProtocolOptions options ) : bool
options Network.NWProtocolOptions
Résultat bool

ScheduleWakeup() public méthode

public ScheduleWakeup ( ulong milliseconds ) : void
milliseconds ulong
Résultat void

WriteOutput() public méthode

public WriteOutput ( DispatchData data ) : void
data DispatchData
Résultat void

WriteOutput() public méthode

public WriteOutput ( ReadOnlySpan data ) : void
data ReadOnlySpan
Résultat void

WriteOutputNoCopy() public méthode

public WriteOutputNoCopy ( nuint outputLength ) : bool
outputLength nuint
Résultat bool