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) | |
BindSocket(DatagramSocket) | |
BindSocket(Socket) |
Binds the specified Socket to this |
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
- socket
- DatagramSocket
- 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.