Compartir a través de


DatagramSocketImpl.Bind(Int32, InetAddress) Method

Definition

Binds a datagram socket to a local port and address.

[Android.Runtime.Register("bind", "(ILjava/net/InetAddress;)V", "GetBind_ILjava_net_InetAddress_Handler")]
protected abstract void Bind (int lport, Java.Net.InetAddress? laddr);
[<Android.Runtime.Register("bind", "(ILjava/net/InetAddress;)V", "GetBind_ILjava_net_InetAddress_Handler")>]
abstract member Bind : int * Java.Net.InetAddress -> unit

Parameters

lport
Int32

the local port

laddr
InetAddress

the local address

Attributes

Exceptions

if an error occurs while binding, for example, if the port has been already bound.

Remarks

Binds a datagram socket to a local port and address.

Java documentation for java.net.DatagramSocketImpl.bind(int, java.net.InetAddress).

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