gupnp_context_get_subscription_timeout

(PECL gupnp >= 0.1.0) Get the event subscription timeout int gupnp_context_get_subscription_timeout ( resource $context ) Get the event subscription timeout (in seconds), or 0 meaning there is no timeout. Parameters: context A context identifier, returned by gupnp_context_new(). Returns: The event subscription timeout in seconds.

gupnp_context_get_port

(PECL gupnp >= 0.1.0) Get the port int gupnp_context_get_port ( resource $context ) Get the port that the SOAP server is running on. Parameters: context A context identifier, returned by gupnp_context_new(). Returns: Returns the port number for the current context and FALSE on error. Examples:

gupnp_context_get_host_ip

(PECL gupnp >= 0.1.0) Get the IP address string gupnp_context_get_host_ip ( resource $context ) Get the IP address we advertise ourselves as using. Parameters: context A context identifier, returned by gupnp_context_new(). Returns: Returns the IP address for the current context and FALSE on error.

gopher_parsedir

(PECL net_gopher >= 0.1) Translate a gopher formatted directory entry into an associative array. array gopher_parsedir ( string $dirent ) gopher_parsedir() parses a gopher formatted directory entry into an associative array. While gopher returns text/plain documents for actual document requests. A request to a directory (such as /) will return specially encoded series of lines with each line being one directory entry or

GearmanWorker::work

(PECL gearman >= 0.5.0) Wait for and perform jobs public bool GearmanWorker::work ( void ) Waits for a job to be assigned and then calls the appropriate callback function. Issues an E_WARNING with the last Gearman error if the return code is not one of GEARMAN_SUCCESS, GEARMAN_IO_WAIT, or GEARMAN_WORK_FAIL. Returns: Returns TRUE on success or FALSE on failure.

GearmanWorker::wait

(PECL gearman >= 0.6.0) Wait for activity from one of the job servers public bool GearmanWorker::wait ( void ) Causes the worker to wait for activity from one of the Gearman job servers when operating in non-blocking I/O mode. On failure, issues a E_WARNING with the last Gearman error encountered. Returns: Returns TRUE on success or FALSE on failure.

GearmanWorker::unregisterAll

(PECL gearman >= 0.6.0) Unregister all function names with the job servers public bool GearmanWorker::unregisterAll ( void ) Unregisters all previously registered functions, ensuring that no more jobs are sent to this worker. Returns: A standard Gearman return value. See also: GearmanWorker::register() -

GearmanWorker::unregister

(PECL gearman >= 0.6.0) Unregister a function name with the job servers public bool GearmanWorker::unregister ( string $function_name ) Unregisters a function name with the job servers ensuring that no more jobs (for that function) are sent to this worker. Parameters: function_name The name of a function to register with the job server Returns:

GearmanWorker::timeout

(PECL gearman >= 0.6.0) Get socket I/O activity timeout public int GearmanWorker::timeout ( void ) Returns the current time to wait, in milliseconds, for socket I/O activity. Returns: A time period is milliseconds. A negative value indicates an infinite timeout. See also: GearmanWorker::setTimeout() -

GearmanWorker::setTimeout

(PECL gearman >= 0.6.0) Set socket I/O activity timeout public bool GearmanWorker::setTimeout ( int $timeout ) Sets the interval of time to wait for socket I/O activity. Parameters: timeout An interval of time in milliseconds. A negative value indicates an infinite timeout. Returns: Always returns TRUE.