AsynchronousSocketChannel.ShutdownOutput Method

Definition

Shutdown the connection for writing without closing the channel.

[Android.Runtime.Register("shutdownOutput", "()Ljava/nio/channels/AsynchronousSocketChannel;", "GetShutdownOutputHandler", ApiSince=26)]
public abstract Java.Nio.Channels.AsynchronousSocketChannel? ShutdownOutput ();
[<Android.Runtime.Register("shutdownOutput", "()Ljava/nio/channels/AsynchronousSocketChannel;", "GetShutdownOutputHandler", ApiSince=26)>]
abstract member ShutdownOutput : unit -> Java.Nio.Channels.AsynchronousSocketChannel

Returns

The channel

Attributes

Remarks

Shutdown the connection for writing without closing the channel.

Once shutdown for writing then further attempts to write to the channel will throw ClosedChannelException. If the output side of the connection is already shutdown then invoking this method has no effect. The effect on an outstanding write operation is system dependent and therefore not specified.

Java documentation for java.nio.channels.AsynchronousSocketChannel.shutdownOutput().

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