Language

Os.Bind Method

Definition

Overloads

Bind(FileDescriptor, SocketAddress)

See bind(2).

[Android.Runtime.Register("bind", "(Ljava/io/FileDescriptor;Ljava/net/SocketAddress;)V", "", ApiSince=29)]
public static void Bind(Java.IO.FileDescriptor fd, Java.Net.SocketAddress address);
[<Android.Runtime.Register("bind", "(Ljava/io/FileDescriptor;Ljava/net/SocketAddress;)V", "", ApiSince=29)>]
static member Bind : Java.IO.FileDescriptor * Java.Net.SocketAddress -> unit

Parameters

fd
FileDescriptor

The socket to assign a local address to.

address
SocketAddress

The local address to assign to the socket.

Attributes

Remarks

See bind(2).

Java documentation for android.system.Os.bind(java.io.FileDescriptor, java.net.SocketAddress).

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

Bind(FileDescriptor, InetAddress, Int32)

See bind(2).

[Android.Runtime.Register("bind", "(Ljava/io/FileDescriptor;Ljava/net/InetAddress;I)V", "")]
public static void Bind(Java.IO.FileDescriptor? fd, Java.Net.InetAddress? address, int port);
[<Android.Runtime.Register("bind", "(Ljava/io/FileDescriptor;Ljava/net/InetAddress;I)V", "")>]
static member Bind : Java.IO.FileDescriptor * Java.Net.InetAddress * int -> unit

Parameters

fd
FileDescriptor

The socket to assign a local address to.

address
InetAddress

The local address to assign to the socket.

port
Int32

The local IP port number.

Attributes

Exceptions

Remarks

See bind(2).

Java documentation for android.system.Os.bind(java.io.FileDescriptor, java.net.InetAddress, 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