[Network, Security] Typo fixes
This commit is contained in:
Родитель
5252b990c2
Коммит
7bfb265d0e
|
@ -179,7 +179,7 @@ namespace Network {
|
|||
static extern unsafe void nw_content_context_foreach_protocol_metadata (IntPtr handle, void *callback);
|
||||
|
||||
[TV (12,0), Mac (10,14), iOS (12,0)]
|
||||
public void ItereateProtocolMetadata (Action<NWProtocolDefinition,NWProtocolMetadata> callback)
|
||||
public void IterateProtocolMetadata (Action<NWProtocolDefinition,NWProtocolMetadata> callback)
|
||||
{
|
||||
unsafe {
|
||||
BlockLiteral *block_ptr_handler;
|
||||
|
|
|
@ -42,7 +42,7 @@ namespace Network {
|
|||
public enum NWInterfaceType {
|
||||
Other = 0,
|
||||
Wifi = 1,
|
||||
Celullar = 2,
|
||||
Cellular = 2,
|
||||
Wired = 3,
|
||||
Loopback = 4
|
||||
}
|
||||
|
|
|
@ -316,7 +316,7 @@ namespace Network {
|
|||
static extern NWInterfaceType nw_parameters_get_required_interface_type (nw_parameters_t parameters);
|
||||
|
||||
[TV (12,0), Mac (10,14), iOS (12,0)]
|
||||
public NWInterfaceType RequiredIntefaceType {
|
||||
public NWInterfaceType RequiredInterfaceType {
|
||||
get => nw_parameters_get_required_interface_type (GetHandle());
|
||||
set => nw_parameters_set_required_interface_type (GetHandle(), value);
|
||||
}
|
||||
|
|
|
@ -123,7 +123,7 @@ namespace Network {
|
|||
extern static uint nw_tcp_get_available_receive_buffer (IntPtr handle);
|
||||
|
||||
[TV (12,0), Mac (10,14), iOS (12,0)]
|
||||
public uint TcpGetAvaialbleReceiveBuffer () => nw_tcp_get_available_receive_buffer (GetHandle());
|
||||
public uint TcpGetAvailableReceiveBuffer () => nw_tcp_get_available_receive_buffer (GetHandle());
|
||||
|
||||
[TV (12,0), Mac (10,14), iOS (12,0)]
|
||||
[DllImport (Constants.NetworkLibrary)]
|
||||
|
|
|
@ -128,31 +128,31 @@ namespace Network {
|
|||
|
||||
[TV (12,0), Mac (10,14), iOS (12,0)]
|
||||
[DllImport (Constants.NetworkLibrary)]
|
||||
extern static void nw_tcp_options_set_enable_keepalive(IntPtr handle, [MarshalAs (UnmanagedType.U1)] bool enableKeepalive);
|
||||
extern static void nw_tcp_options_set_enable_keepalive(IntPtr handle, [MarshalAs (UnmanagedType.U1)] bool enableKeepAlive);
|
||||
|
||||
[TV (12,0), Mac (10,14), iOS (12,0)]
|
||||
public void TcpSetEnableKeepAlive (bool enableKeepalive) => nw_tcp_options_set_enable_keepalive (GetHandle(), enableKeepalive);
|
||||
public void TcpSetEnableKeepAlive (bool enableKeepAlive) => nw_tcp_options_set_enable_keepalive (GetHandle(), enableKeepAlive);
|
||||
|
||||
[TV (12,0), Mac (10,14), iOS (12,0)]
|
||||
[DllImport (Constants.NetworkLibrary)]
|
||||
extern static void nw_tcp_options_set_keepalive_count(IntPtr handle, uint keepaliveCount);
|
||||
|
||||
[TV (12,0), Mac (10,14), iOS (12,0)]
|
||||
public void TcpSetKeepaliveCount (uint keepaliveCount) => nw_tcp_options_set_keepalive_count (GetHandle(), keepaliveCount);
|
||||
public void TcpSetKeepAliveCount (uint keepaliveCount) => nw_tcp_options_set_keepalive_count (GetHandle(), keepaliveCount);
|
||||
|
||||
[TV (12,0), Mac (10,14), iOS (12,0)]
|
||||
[DllImport (Constants.NetworkLibrary)]
|
||||
extern static void nw_tcp_options_set_keepalive_idle_time(IntPtr handle, uint keepaliveIdleTime);
|
||||
|
||||
[TV (12,0), Mac (10,14), iOS (12,0)]
|
||||
public void TcpSetKeepaliveIdleTime (uint keepaliveIdleTime) => nw_tcp_options_set_keepalive_idle_time (GetHandle(), keepaliveIdleTime);
|
||||
public void TcpSetKeepAliveIdleTime (uint keepaliveIdleTime) => nw_tcp_options_set_keepalive_idle_time (GetHandle(), keepaliveIdleTime);
|
||||
|
||||
[TV (12,0), Mac (10,14), iOS (12,0)]
|
||||
[DllImport (Constants.NetworkLibrary)]
|
||||
extern static void nw_tcp_options_set_keepalive_interval(IntPtr handle, uint keepaliveInterval);
|
||||
|
||||
[TV (12,0), Mac (10,14), iOS (12,0)]
|
||||
public void TcpSetKeepaliveInterval (uint keepaliveInterval) => nw_tcp_options_set_keepalive_interval (GetHandle(), keepaliveInterval);
|
||||
public void TcpSetKeepAliveInterval (uint keepaliveInterval) => nw_tcp_options_set_keepalive_interval (GetHandle(), keepaliveInterval);
|
||||
|
||||
[TV (12,0), Mac (10,14), iOS (12,0)]
|
||||
[DllImport (Constants.NetworkLibrary)]
|
||||
|
|
|
@ -42,9 +42,9 @@ namespace Security {
|
|||
|
||||
[TV (12,0), Mac (10,14), iOS (12,0)]
|
||||
[DllImport (Constants.SecurityLibrary)]
|
||||
static extern void sec_protocol_options_add_tls_ciphersuite_group (sec_protocol_options_t handle, SslCiphersuiteGroup cipherSuiteGroup);
|
||||
static extern void sec_protocol_options_add_tls_ciphersuite_group (sec_protocol_options_t handle, SslCipherSuiteGroup cipherSuiteGroup);
|
||||
[TV (12,0), Mac (10,14), iOS (12,0)]
|
||||
public void AddTlsCiphersuiteGroup (SslCiphersuiteGroup cipherSuiteGroup) => sec_protocol_options_add_tls_ciphersuite_group (GetHandle (), cipherSuiteGroup);
|
||||
public void AddTlsCipherSuiteGroup (SslCipherSuiteGroup cipherSuiteGroup) => sec_protocol_options_add_tls_ciphersuite_group (GetHandle (), cipherSuiteGroup);
|
||||
|
||||
[TV (12,0), Mac (10,14), iOS (12,0)]
|
||||
[DllImport (Constants.SecurityLibrary)]
|
||||
|
|
|
@ -329,7 +329,7 @@ namespace Security {
|
|||
|
||||
}
|
||||
|
||||
public enum SslCiphersuiteGroup {
|
||||
public enum SslCipherSuiteGroup {
|
||||
Default, Compatibility, Legacy, Ats, AtsCompatibility
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче