C# Class Pchp.Library.Streams.SocketStream

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

Protected Properties

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

Méthodes publiques

Méthode Description
GetValid ( PhpResource handle ) : SocketStream
SetParameter ( StreamParameterOptions option, PhpValue value ) : bool
SocketStream ( Context ctx, Socket socket, string openedPath, StreamContext context, bool isAsync = false ) : Pchp.Core

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

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 ( PhpResource handle ) : SocketStream
handle Pchp.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, PhpValue value ) : bool
option StreamParameterOptions
value Pchp.Core.PhpValue
Résultat bool

SocketStream() public méthode

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
Résultat Pchp.Core

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