Example #1
0
        /// <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);
            }
        }
Example #2
0
 internal virtual void SetInputStream(SocketInputStream @in)
 {
     SocketInputStream = @in;
 }
Example #3
0
 internal override void SetInputStream(SocketInputStream @in)
 {
     Impl.SetInputStream(@in);
 }