Pchp.Library.Streams.SocketStream.SocketStream C# (CSharp) Method

SocketStream() public method

public SocketStream ( Context ctx, Socket socket, string openedPath, StreamContext context, bool isAsync = false ) : Pchp.Core
ctx Pchp.Core.Context
socket System.Net.Sockets.Socket
openedPath string
context StreamContext
isAsync bool
return Pchp.Core
        public SocketStream(Context ctx, Socket socket, string openedPath, StreamContext context, bool isAsync = false)
            : base(ctx, null, StreamAccessOptions.Read | StreamAccessOptions.Write, openedPath, context)
        {
            Debug.Assert(socket != null);
            this.socket = socket;
            this.IsWriteBuffered = false;
            this.eof = false;
            this.isAsync = isAsync;
            this.IsReadBuffered = false;
        }