Network.BindSocket Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
BindSocket(FileDescriptor) |
Binds the specified |
BindSocket(DatagramSocket) |
Binds the specified |
BindSocket(Socket) |
Binds the specified |
BindSocket(FileDescriptor)
Binds the specified FileDescriptor
to this Network
.
[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
Binds the specified FileDescriptor
to this Network
. All data traffic on the socket represented by this file descriptor will be sent on this Network
, irrespective of any process-wide network binding set by ConnectivityManager#bindProcessToNetwork
. The socket must not be connected.
Java documentation for android.net.Network.bindSocket(java.io.FileDescriptor)
.
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)
Binds the specified DatagramSocket
to this Network
.
[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
- socket
- DatagramSocket
- Attributes
Remarks
Binds the specified DatagramSocket
to this Network
. All data traffic on the socket will be sent on this Network
, irrespective of any process-wide network binding set by ConnectivityManager#bindProcessToNetwork
. The socket must not be connected.
Java documentation for android.net.Network.bindSocket(java.net.DatagramSocket)
.
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
Binds the specified Socket
to this Network
. All data traffic on the socket will be sent on this Network
, irrespective of any process-wide network binding set by ConnectivityManager#bindProcessToNetwork
. The socket must not be connected.
Java documentation for android.net.Network.bindSocket(java.net.Socket)
.
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.