C# Class PHP.Core.SocketStream

An implementation of PhpStream as an encapsulation of System.Net.Socket transports.
Inheritance: PhpStream
Afficher le fichier Open project: jadu/Phalanger

Protected Properties

Свойство Type Description
eof bool
socket System.Net.Sockets.Socket

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode 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 méthode

public CanReadWithoutLock ( ) : bool
Résultat bool

CanWriteWithoutLock() public méthode

public CanWriteWithoutLock ( ) : bool
Résultat bool

FreeManaged() protected méthode

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

GetValid() public static méthode

public static GetValid ( PHP.Core.PhpResource handle ) : SocketStream
handle PHP.Core.PhpResource
Résultat SocketStream

RawFlush() protected méthode

protected RawFlush ( ) : bool
Résultat bool

RawRead() protected méthode

protected RawRead ( byte buffer, int offset, int count ) : int
buffer byte
offset int
count int
Résultat int

RawWrite() protected méthode

protected RawWrite ( byte buffer, int offset, int count ) : int
buffer byte
offset int
count int
Résultat int

SetParameter() public méthode

public SetParameter ( StreamParameterOptions option, object value ) : bool
option StreamParameterOptions
value object
Résultat bool

SocketStream() public méthode

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
Résultat System

Property Details

eof protected_oe property

Result of the last read/write operation.
protected bool eof
Résultat bool

socket protected_oe property

The encapsulated network socket.
protected Socket,System.Net.Sockets socket
Résultat System.Net.Sockets.Socket