다음을 통해 공유


SocketHandler Constructors

Definition

Overloads

SocketHandler()

Create a SocketHandler, using only LogManager properties (or their defaults).

SocketHandler(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

SocketHandler(String, Int32)

Construct a SocketHandler using a specified host and port.

SocketHandler()

Create a SocketHandler, using only LogManager properties (or their defaults).

[Android.Runtime.Register(".ctor", "()V", "")]
public SocketHandler ();
Attributes

Exceptions

if failed to connect to the specified host and port.

if the host name or port number is illegal.

Remarks

Create a SocketHandler, using only LogManager properties (or their defaults).

Java documentation for java.util.logging.SocketHandler.SocketHandler().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

SocketHandler(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

protected SocketHandler (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Java.Util.Logging.SocketHandler : nativeint * Android.Runtime.JniHandleOwnership -> Java.Util.Logging.SocketHandler

Parameters

javaReference
IntPtr

nativeint

A IntPtrcontaining a Java Native Interface (JNI) object reference.

transfer
JniHandleOwnership

A JniHandleOwnershipindicating how to handle javaReference

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

SocketHandler(String, Int32)

Construct a SocketHandler using a specified host and port.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;I)V", "")]
public SocketHandler (string? host, int port);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;I)V", "")>]
new Java.Util.Logging.SocketHandler : string * int -> Java.Util.Logging.SocketHandler

Parameters

host
String

target host.

port
Int32

target port.

Attributes

Exceptions

if failed to connect to the specified host and port.

if the host name or port number is illegal.

Remarks

Construct a SocketHandler using a specified host and port.

The SocketHandler is configured based on LogManager properties (or their default values) except that the given target host and port arguments are used. If the host argument is empty, but not null String then the localhost is used.

Java documentation for java.util.logging.SocketHandler.SocketHandler(java.lang.String, int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to