ServerSocketChannel.Bind 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
| Bind(SocketAddress) |
Binds the channel's socket to a local address and configures the socket to listen for connections. |
| Bind(SocketAddress, Int32) |
Binds the channel's socket to a local address and configures the socket to listen for connections. |
Bind(SocketAddress)
Binds the channel's socket to a local address and configures the socket to listen for connections.
[Android.Runtime.Register("bind", "(Ljava/net/SocketAddress;)Ljava/nio/channels/ServerSocketChannel;", "", ApiSince=24)]
public Java.Nio.Channels.ServerSocketChannel? Bind (Java.Net.SocketAddress? local);
[<Android.Runtime.Register("bind", "(Ljava/net/SocketAddress;)Ljava/nio/channels/ServerSocketChannel;", "", ApiSince=24)>]
member this.Bind : Java.Net.SocketAddress -> Java.Nio.Channels.ServerSocketChannel
Parameters
- local
- SocketAddress
The local address to bind the socket, or null to bind
to an automatically assigned socket address
Returns
This channel
- Attributes
Remarks
Java documentation for java.nio.channels.ServerSocketChannel.bind(java.net.SocketAddress).
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
Bind(SocketAddress, Int32)
Binds the channel's socket to a local address and configures the socket to listen for connections.
[Android.Runtime.Register("bind", "(Ljava/net/SocketAddress;I)Ljava/nio/channels/ServerSocketChannel;", "GetBind_Ljava_net_SocketAddress_IHandler", ApiSince=24)]
public abstract Java.Nio.Channels.ServerSocketChannel? Bind (Java.Net.SocketAddress? local, int backlog);
[<Android.Runtime.Register("bind", "(Ljava/net/SocketAddress;I)Ljava/nio/channels/ServerSocketChannel;", "GetBind_Ljava_net_SocketAddress_IHandler", ApiSince=24)>]
abstract member Bind : Java.Net.SocketAddress * int -> Java.Nio.Channels.ServerSocketChannel
Parameters
- local
- SocketAddress
The address to bind the socket, or null to bind to an
automatically assigned socket address
- backlog
- Int32
The maximum number of pending connections
Returns
This channel
- Attributes
Remarks
Java documentation for java.nio.channels.ServerSocketChannel.bind(java.net.SocketAddress, int).
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.