C# Class PHP.Core.SocketStream

An implementation of PhpStream as an encapsulation of System.Net.Socket transports.
Inheritance: PhpStream
Mostrar archivo Open project: jadu/Phalanger

Protected Properties

Property Type Description
eof bool
socket System.Net.Sockets.Socket

Public Methods

Method Description
CanReadWithoutLock ( ) : bool
CanWriteWithoutLock ( ) : bool
GetValid ( PHP.Core.PhpResource handle ) : SocketStream
SetParameter ( StreamParameterOptions option, object value ) : bool
SocketStream ( Socket socket, string openedPath, PHP.Core.StreamContext context, bool isAsync = false ) : System

Protected Methods

Method Description
FreeManaged ( ) : void

PhpResource.FreeManaged overridden to get rid of the contained context on Dispose.

RawFlush ( ) : bool
RawRead ( byte buffer, int offset, int count ) : int
RawWrite ( byte buffer, int offset, int count ) : int

Method Details

CanReadWithoutLock() public method

public CanReadWithoutLock ( ) : bool
return bool

CanWriteWithoutLock() public method

public CanWriteWithoutLock ( ) : bool
return bool

FreeManaged() protected method

PhpResource.FreeManaged overridden to get rid of the contained context on Dispose.
protected FreeManaged ( ) : void
return void

GetValid() public static method

public static GetValid ( PHP.Core.PhpResource handle ) : SocketStream
handle PHP.Core.PhpResource
return SocketStream

RawFlush() protected method

protected RawFlush ( ) : bool
return bool

RawRead() protected method

protected RawRead ( byte buffer, int offset, int count ) : int
buffer byte
offset int
count int
return int

RawWrite() protected method

protected RawWrite ( byte buffer, int offset, int count ) : int
buffer byte
offset int
count int
return int

SetParameter() public method

public SetParameter ( StreamParameterOptions option, object value ) : bool
option StreamParameterOptions
value object
return bool

SocketStream() public method

public SocketStream ( Socket socket, string openedPath, PHP.Core.StreamContext context, bool isAsync = false ) : System
socket System.Net.Sockets.Socket
openedPath string
context PHP.Core.StreamContext
isAsync bool
return System

Property Details

eof protected_oe property

Result of the last read/write operation.
protected bool eof
return bool

socket protected_oe property

The encapsulated network socket.
protected Socket,System.Net.Sockets socket
return System.Net.Sockets.Socket