다음을 통해 공유


SocketImpl.ShutdownInput Method

Definition

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

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

Exceptions

always because this method should be overridden.

Remarks

Places the input stream for this socket at "end of stream". Any data sent to this 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.SocketImpl.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