SocketImpl.Create(Boolean) Method

Definition

Creates either a stream or a datagram socket.

[Android.Runtime.Register("create", "(Z)V", "GetCreate_ZHandler")]
protected abstract void Create (bool stream);
[<Android.Runtime.Register("create", "(Z)V", "GetCreate_ZHandler")>]
abstract member Create : bool -> unit

Parameters

stream
Boolean

if true, create a stream socket; otherwise, create a datagram socket.

Attributes

Exceptions

if an error occurs while creating the socket.

Remarks

Creates either a stream or a datagram socket.

Java documentation for java.net.SocketImpl.create(boolean).

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