Java.Net.SocketImpl.Bind Method
Binds this socket to the specified local host address and port number.

Syntax

[Android.Runtime.Register("bind", "(Ljava/net/InetAddress;I)V", "GetBind_Ljava_net_InetAddress_IHandler")]
protected abstract void Bind (InetAddress address, int port)

Parameters

address
the local machine address to bind this socket to.
port
the port on the local machine to bind this socket to.

Exceptions

TypeReason
Java.IO.IOExceptionif an error occurs while binding this socket.

Remarks

Binds this socket to the specified local host address and port number.

[Android Documentation]

Requirements

Namespace: Java.Net
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1