« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 6 of about 6 for getSocket (0.002 sec.)
ZMQContext::getSocket — Create a new socket | PHP 8.3 12704
ZMQContext::getSocket (PECL zmq >= 0.5.0) ZMQContext::getSocket — Create a new socket 説明 public function ZMQContext::getSocket ( int $type , string $persistent_id = null , callable $on_new_socket = null ): ZMQSocket Shortcut for creating ... sic usage <?php /* Allocate a new context */ $context = new ZMQContext (); /* Create a new socket */ $socket = $context -> getSocket ( ZMQ :: SOCKET_REQ , 'my sock' ); /* Connect the socket */ $socket -> connect ( "tcp://example.com:1234" ); /* Send a req ...
https://man.mtool.work/php/8.3/zmqcontext.getsocket.html
The ZMQContext class | PHP 8.3 10327
The ZMQContext class (PECL zmq >= 0.5.0) はじめに クラス概要 class ZMQContext { /* メソッド */ public function __construct ( int $io_threads = 1 , bool $is_persistent = true ) public function getOpt ( string $key ): mixed public function getSocket ... ext } 目次 ZMQContext::__construct — Construct a new ZMQContext object ZMQContext::getOpt — Get context option ZMQContext::getSocket — Create a new socket ZMQContext::isPersistent — Whether the context is persistent ZMQContext::setOpt — Set a socket optio ...
https://man.mtool.work/php/8.3/class.zmqcontext.html
ZMQContext::__construct — Construct a new ZMQContext object | PHP 8.3 8207
ZMQContext::__construct (PECL zmq >= 0.5.0) ZMQContext::__construct — Construct a new ZMQContext object 説明 public function ZMQContext::__construct ( int $io_threads = 1 , bool $is_persistent = true ) Constructs a new ZMQ context. The cont ... t from it <?php /* Allocate a new context */ $context = new ZMQContext (); /* Create a new socket */ $socket = $context -> getSocket ( ZMQ :: SOCKET_REQ , 'my sock' ); /* Connect the socket */ $socket -> connect ( "tcp://example.com:1234" ); /* Send a req ...
https://man.mtool.work/php/8.3/zmqcontext.construct.html
ZMQSocket::__construct — Construct a new ZMQSocket | PHP 8.3 7933
ZMQSocket::__construct (PECL zmq >= 0.5.0) ZMQSocket::__construct — Construct a new ZMQSocket 説明 public function ZMQSocket::__construct ( ZMQContext $context , int $type , string $persistent_id = null , callable $on_new_socket = null ) Co ... t:12122" ); } } /* Allocate a new context */ $context = new ZMQContext (); /* Create a new socket */ $socket = $context -> getSocket ( ZMQ :: SOCKET_REP , 'server' , 'on_new_socket_cb' ); $message = $socket -> recv (); echo "Received message: { $message } ...
https://man.mtool.work/php/8.3/zmqsocket.construct.html
ZMQ | PHP 8.3 7805
ZMQ はじめに 警告 この拡張モジュールは、 実験的 なものです。この拡張モジュールの動作・ 関数名・その他ドキュメントに書かれている事項は、予告なく、将来的な PHP のリリースにおいて変更される可能性があります。 このモジュールは自己責任で使用してく ... text class ZMQContext::__construct — Construct a new ZMQContext object ZMQContext::getOpt — Get context option ZMQContext::getSocket — Create a new socket ZMQContext::isPersistent — Whether the context is persistent ZMQContext::setOpt — Set a socket optio ... ect a socket ZMQSocket::getEndpoints — Get list of endpoints ZMQSocket::getPersistentId — Get the persistent id ZMQSocket::getSocketType — Get the socket type ZMQSocket::getSockOpt — Get socket option ZMQSocket::isPersistent — Whether the socket is persis ...
https://man.mtool.work/php/8.3/book.zmq.html
ZMQPoll::poll — Poll the items | PHP 8.3 7805
ZMQPoll::poll (PECL zmq >= 0.5.0) ZMQPoll::poll — Poll the items 説明 public function ZMQPoll::poll ( array &$readable , array &$writable , int $timeout = -1 ): int Polls the items in the current poll set. The readable and writable items ar ... server <?php /* Create socket, request-reply pattern (reply socket) */ $context = new ZMQContext (); $server = $context -> getSocket ( ZMQ :: SOCKET_REP ); /* Bind to port 5555 on 127.0.0.1 */ $server -> bind ( "tcp://127.0.0.1:5555" ); /* Create new poll ...
https://man.mtool.work/php/8.3/zmqpoll.poll.html
PREV 1 NEXT