SocketImpl.ShutdownOutput Method

Definition

Disables the output stream for this socket.

[Android.Runtime.Register("shutdownOutput", "()V", "GetShutdownOutputHandler")]
protected virtual void ShutdownOutput ();
[<Android.Runtime.Register("shutdownOutput", "()V", "GetShutdownOutputHandler")>]
abstract member ShutdownOutput : unit -> unit
override this.ShutdownOutput : unit -> unit
Attributes

Exceptions

always because this method should be overridden.

Remarks

Disables the output stream for this socket. For a TCP socket, any previously written data will be sent followed by TCP's normal connection termination sequence.

If you write to a socket output stream after invoking shutdownOutput() on the socket, the stream will throw an IOException.

Added in 1.3.

Java documentation for java.net.SocketImpl.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