array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'de', ), 'this' => array ( 0 => 'zmqsocket.bind.php', 1 => 'ZMQSocket::bind', 2 => 'Bind the socket', ), 'up' => array ( 0 => 'class.zmqsocket.php', 1 => 'ZMQSocket', ), 'prev' => array ( 0 => 'class.zmqsocket.php', 1 => 'ZMQSocket', ), 'next' => array ( 0 => 'zmqsocket.connect.php', 1 => 'ZMQSocket::connect', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/zmq/zmqsocket/bind.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

ZMQSocket::bind

(PECL zmq >= 0.5.0)

ZMQSocket::bindBind the socket

Beschreibung

public ZMQSocket::bind(string $dsn, bool $force = false): ZMQSocket

Bind the socket to an endpoint. The endpoint is defined in format transport://address where transport is one of the following: inproc, ipc, tcp, pgm or epgm.

Parameter-Liste

dsn

The bind dsn, for example transport://address.

force

Tries to bind even if the socket has already been bound to the given endpoint.

Rückgabewerte

Returns the current object. Throws ZMQSocketException on error.