Home > PHP > Function > Gupnp > gupnp_context_new()

gupnp_context_new()

gupnp_context_new - Create a new context

Syntax

resource gupnp_context_new (string $host_ip, int $port)

Arguments

  • host_ip - The local host\'s IP address, or NULL to use the IP address of the first non-loopback network interface.
  • port - Port to run on, or 0 if you don\'t care what port is used.

Description

Create a new context with the specified host_ip and port.

Version

PHP PECL gupnp >= 0.1.0

Return value

A context identifier.