Share via


LocalSocket Constructors

Definition

Overloads

LocalSocket()

Creates a AF_LOCAL/UNIX ___domain stream socket.

LocalSocket(SocketType)

Creates a AF_LOCAL/UNIX ___domain socket with the given socket type.

LocalSocket(IntPtr, JniHandleOwnership)

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

LocalSocket()

Creates a AF_LOCAL/UNIX ___domain stream socket.

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

Remarks

Creates a AF_LOCAL/UNIX ___domain stream socket.

Java documentation for android.net.LocalSocket.LocalSocket().

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

LocalSocket(SocketType)

Creates a AF_LOCAL/UNIX ___domain socket with the given socket type.

[Android.Runtime.Register(".ctor", "(I)V", "")]
public LocalSocket(Android.Net.SocketType sockType);
[<Android.Runtime.Register(".ctor", "(I)V", "")>]
new Android.Net.LocalSocket : Android.Net.SocketType -> Android.Net.LocalSocket

Parameters

sockType
SocketType

either #SOCKET_DGRAM, #SOCKET_STREAM or #SOCKET_SEQPACKET

Attributes

Remarks

Creates a AF_LOCAL/UNIX ___domain socket with the given socket type.

Java documentation for android.net.LocalSocket.LocalSocket(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

LocalSocket(IntPtr, JniHandleOwnership)

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

protected LocalSocket(IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Net.LocalSocket : nativeint * Android.Runtime.JniHandleOwnership -> Android.Net.LocalSocket

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