NAME ^

php_streamsfuncs.pir - PHP streamsfuncs Standard Library

DESCRIPTION ^

Functions ^

resource stream_context_create([array options])

Create a file context and optionally set parameters

NOT IMPLEMENTED.

resource stream_context_get_default([array options])

Get a handle on the default file/stream context and optionally set parameters

NOT IMPLEMENTED.

array stream_context_get_options(resource context|resource stream)

Retrieve options for a stream/wrapper/context

NOT IMPLEMENTED.

bool stream_context_set_option(resource context|resource stream, string wrappername, string optionname, mixed value)

Set an option for a wrapper

NOT IMPLEMENTED.

bool stream_context_set_params(resource context|resource stream, array options)

Set parameters for a file context

NOT IMPLEMENTED.

long stream_copy_to_stream(resource source, resource dest [, long maxlen [, long pos]])

Reads up to maxlen bytes from source stream and writes them to dest stream.

NOT IMPLEMENTED.

resource stream_filter_append(resource stream, string filtername[, int read_write[, string filterparams]])

Append a filter to a stream

NOT IMPLEMENTED.

resource stream_filter_prepend(resource stream, string filtername[, int read_write[, string filterparams]])

Prepend a filter to a stream

NOT IMPLEMENTED.

bool stream_filter_remove(resource stream_filter)

Flushes any data in the filter's internal buffer, removes it from the chain, and frees the resource

NOT IMPLEMENTED.

long stream_get_contents(resource source [, long maxlen [, long offset]])

Reads all remaining bytes (or up to maxlen bytes) from a stream and returns them as a string.

NOT IMPLEMENTED.

string stream_get_line(resource stream, int maxlen [, string ending])

Read up to maxlen bytes from a stream or until the ending string is found

NOT IMPLEMENTED.

array stream_get_meta_data(resource fp)

Retrieves header/meta data from streams/file pointers

NOT IMPLEMENTED.

array stream_get_transports()

Retrieves list of registered socket transports

NOT IMPLEMENTED.

array stream_get_wrappers()

Retrieves list of registered stream wrappers

NOT IMPLEMENTED.

bool stream_is_local(resource stream|string url)

NOT IMPLEMENTED.

int stream_select(array &read_streams, array &write_streams, array &except_streams, int tv_sec[, int tv_usec])

Runs the select() system call on the sets of streams with a timeout specified by tv_sec and tv_usec

NOT IMPLEMENTED.

bool stream_set_blocking(resource socket, int mode)

Set blocking/non-blocking mode on a socket or stream

NOT IMPLEMENTED.

bool stream_set_timeout(resource stream, int seconds, int microseconds)

Set timeout on stream read to seconds + microseonds

NOT IMPLEMENTED.

int stream_set_write_buffer(resource fp, int buffer)

Set file write buffer

NOT IMPLEMENTED.

resource stream_socket_accept(resource serverstream, [ double timeout, string &peername ])

Accept a client connection from a server socket

NOT IMPLEMENTED.

resource stream_socket_client(string remoteaddress [, long &errcode, string &errstring, double timeout, long flags, resource context])

Open a client connection to a remote address

NOT IMPLEMENTED.

int stream_socket_enable_crypto(resource stream, bool enable [, int cryptokind, resource sessionstream])

Enable or disable a specific kind of crypto on the stream

NOT IMPLEMENTED.

string stream_socket_get_name(resource stream, bool want_peer)

Returns either the locally bound or remote name for a socket stream

NOT IMPLEMENTED.

array stream_socket_pair(int domain, int type, int protocol)

Creates a pair of connected, indistinguishable socket streams

NOT IMPLEMENTED.

string stream_socket_recvfrom(resource stream, long amount [, long flags [, string &remote_addr]])

Receives data from a socket stream

NOT IMPLEMENTED.

long stream_socket_sendto(resouce stream, string data [, long flags [, string target_addr]])

Send data to a socket stream. If target_addr is specified it must be in dotted quad (or [ipv6]) format

NOT IMPLEMENTED.

resource stream_socket_server(string localaddress [, long &errcode, string &errstring, long flags, resource context])

Create a server socket bound to localaddress

NOT IMPLEMENTED.

int stream_socket_shutdown(resource stream, int how)

causes all or part of a full-duplex connection on the socket associated with stream to be shut down. If how is SHUT_RD, further receptions will be disallowed. If how is SHUT_WR, further transmissions will be disallowed. If how is SHUT_RDWR, further receptions and transmissions will be disallowed.

NOT IMPLEMENTED.


parrot