Condividi tramite


Socket.ShutdownInput Method

Definition

Places the input stream for this socket at "end of stream".

[Android.Runtime.Register("shutdownInput", "()V", "GetShutdownInputHandler")]
public virtual void ShutdownInput ();
[<Android.Runtime.Register("shutdownInput", "()V", "GetShutdownInputHandler")>]
abstract member ShutdownInput : unit -> unit
override this.ShutdownInput : unit -> unit
Attributes

Exceptions

if an error occurs while closing the socket input stream.

if the input stream is already closed.

Remarks

Places the input stream for this socket at "end of stream". Any data sent to the input stream side of the socket is acknowledged and then silently discarded.

If you read from a socket input stream after invoking this method on the socket, the stream's available method will return 0, and its read methods will return -1 (end of stream).

Added in 1.3.

Java documentation for java.net.Socket.shutdownInput().

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