Socket.ShutdownOutput 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.
Disables the output stream for this socket.
[Android.Runtime.Register("shutdownOutput", "()V", "GetShutdownOutputHandler")]
public virtual void ShutdownOutput ();
[<Android.Runtime.Register("shutdownOutput", "()V", "GetShutdownOutputHandler")>]
abstract member ShutdownOutput : unit -> unit
override this.ShutdownOutput : unit -> unit
- Attributes
Exceptions
if an error occurs while closing the socket output stream.
if the output stream is already closed.
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.Socket.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.