Share via


Network.BindSocket Method

Definition

Overloads

BindSocket(FileDescriptor)
BindSocket(DatagramSocket)
BindSocket(Socket)

Binds the specified Socket to this Network.

BindSocket(FileDescriptor)

[Android.Runtime.Register("bindSocket", "(Ljava/io/FileDescriptor;)V", "GetBindSocket_Ljava_io_FileDescriptor_Handler", ApiSince=23)]
public virtual void BindSocket (Java.IO.FileDescriptor? fd);
[<Android.Runtime.Register("bindSocket", "(Ljava/io/FileDescriptor;)V", "GetBindSocket_Ljava_io_FileDescriptor_Handler", ApiSince=23)>]
abstract member BindSocket : Java.IO.FileDescriptor -> unit
override this.BindSocket : Java.IO.FileDescriptor -> unit

Parameters

Attributes

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

BindSocket(DatagramSocket)

[Android.Runtime.Register("bindSocket", "(Ljava/net/DatagramSocket;)V", "GetBindSocket_Ljava_net_DatagramSocket_Handler", ApiSince=22)]
public virtual void BindSocket (Java.Net.DatagramSocket? socket);
[<Android.Runtime.Register("bindSocket", "(Ljava/net/DatagramSocket;)V", "GetBindSocket_Ljava_net_DatagramSocket_Handler", ApiSince=22)>]
abstract member BindSocket : Java.Net.DatagramSocket -> unit
override this.BindSocket : Java.Net.DatagramSocket -> unit

Parameters

Attributes

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

BindSocket(Socket)

Binds the specified Socket to this Network.

[Android.Runtime.Register("bindSocket", "(Ljava/net/Socket;)V", "GetBindSocket_Ljava_net_Socket_Handler")]
public virtual void BindSocket (Java.Net.Socket? socket);
[<Android.Runtime.Register("bindSocket", "(Ljava/net/Socket;)V", "GetBindSocket_Ljava_net_Socket_Handler")>]
abstract member BindSocket : Java.Net.Socket -> unit
override this.BindSocket : Java.Net.Socket -> unit

Parameters

socket
Socket
Attributes

Exceptions

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