/// <summary> /// Gets an InputStream for this socket. /// </summary> //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET: //ORIGINAL LINE: protected synchronized java.io.InputStream getInputStream() throws java.io.IOException protected internal override InputStream GetInputStream() { lock (this) { lock (FdLock) { if (ClosedOrPending) { throw new IOException("Socket Closed"); } if (Shut_rd) { throw new IOException("Socket input is shutdown"); } if (SocketInputStream == null) { SocketInputStream = new SocketInputStream(this); } } return(SocketInputStream); } }
internal virtual void SetInputStream(SocketInputStream @in) { SocketInputStream = @in; }
internal override void SetInputStream(SocketInputStream @in) { Impl.SetInputStream(@in); }