ZMQ目次
The ZMQ classはじめに
クラス概要ZMQ
class ZMQ
{
/* 定数 */
const
int
ZMQ::SOCKET_PAIR;
const
int
ZMQ::SOCKET_PUB;
const
int
ZMQ::SOCKET_SUB;
const
int
ZMQ::SOCKET_REQ;
const
int
ZMQ::SOCKET_REP;
const
int
ZMQ::SOCKET_XREQ;
const
int
ZMQ::SOCKET_XREP;
const
int
ZMQ::SOCKET_PUSH;
const
int
ZMQ::SOCKET_PULL;
const
int
ZMQ::SOCKET_ROUTER;
const
int
ZMQ::SOCKET_DEALER;
const
int
ZMQ::SOCKET_XPUB;
const
int
ZMQ::SOCKET_XSUB;
const
int
ZMQ::SOCKET_STREAM;
const
int
ZMQ::SOCKOPT_HWM;
const
int
ZMQ::SOCKOPT_SNDHWM;
const
int
ZMQ::SOCKOPT_RCVHWM;
const
int
ZMQ::SOCKOPT_AFFINITY;
const
int
ZMQ::SOCKOPT_IDENTITY;
const
int
ZMQ::SOCKOPT_SUBSCRIBE;
const
int
ZMQ::SOCKOPT_UNSUBSCRIBE;
const
int
ZMQ::SOCKOPT_RATE;
const
int
ZMQ::SOCKOPT_RECOVERY_IVL;
const
int
ZMQ::SOCKOPT_RECONNECT_IVL;
const
int
ZMQ::SOCKOPT_RECONNECT_IVL_MAX;
const
int
ZMQ::SOCKOPT_MCAST_LOOP;
const
int
ZMQ::SOCKOPT_SNDBUF;
const
int
ZMQ::SOCKOPT_RCVBUF;
const
int
ZMQ::SOCKOPT_RCVMORE;
const
int
ZMQ::SOCKOPT_TYPE;
const
int
ZMQ::SOCKOPT_LINGER;
const
int
ZMQ::SOCKOPT_BACKLOG;
const
int
ZMQ::SOCKOPT_MAXMSGSIZE;
const
int
ZMQ::SOCKOPT_SNDTIMEO;
const
int
ZMQ::SOCKOPT_RCVTIMEO;
const
int
ZMQ::SOCKOPT_IPV4ONLY;
const
int
ZMQ::SOCKOPT_LAST_ENDPOINT;
const
int
ZMQ::SOCKOPT_TCP_KEEPALIVE_IDLE;
const
int
ZMQ::SOCKOPT_TCP_KEEPALIVE_CNT;
const
int
ZMQ::SOCKOPT_TCP_KEEPALIVE_INTVL;
const
int
ZMQ::SOCKOPT_TCP_ACCEPT_FILTER;
const
int
ZMQ::SOCKOPT_TCP_ACCEPT_FILTER;
const
int
ZMQ::SOCKOPT_DELAY_ATTACH_ON_CONNECT;
const
int
ZMQ::SOCKOPT_XPUB_VERBOSE;
const
int
ZMQ::SOCKOPT_ROUTER_RAW;
const
int
ZMQ::SOCKOPT_IPV6;
const
int
ZMQ::CTXOPT_MAX_SOCKETS;
const
int
ZMQ::POLL_IN;
const
int
ZMQ::POLL_OUT;
const
int
ZMQ::MODE_NOBLOCK;
const
int
ZMQ::MODE_DONTWAIT;
const
int
ZMQ::MODE_SNDMORE;
const
int
ZMQ::ERR_INTERNAL;
const
int
ZMQ::ERR_EAGAIN;
const
int
ZMQ::ERR_ENOTSUP;
const
int
ZMQ::ERR_EFSM;
const
int
ZMQ::ERR_ETERM;
/* メソッド */
private __construct()
}定義済み定数ZMQ Constant Types
The ZMQContext classはじめに
クラス概要ZMQContext
class ZMQContext
{
/* メソッド */
public __construct(int
$io_threads = 1, bool $is_persistent = true )public mixed getOpt(string
$key )public ZMQSocket getSocket(int
$type , string $persistent_id = null , callable $on_new_socket = null )public bool isPersistent()
public ZMQContext setOpt(int
}$key , mixed $value )The ZMQSocket classはじめに
クラス概要ZMQSocket
class ZMQSocket
{
/* メソッド */
public ZMQSocket bind(string
$dsn , bool $force = false )public ZMQSocket connect(string
$dsn , bool $force = false )public __construct(
ZMQContext $context ,int $type ,string $persistent_id = null ,callable $on_new_socket = null ) public ZMQSocket disconnect(string
$dsn )public array getEndpoints()
public string getPersistentId()
public int getSocketType()
public mixed getSockOpt(string
$key )public bool isPersistent()
public string recv(int
$mode = 0)public array recvMulti(int
$mode = 0)public ZMQSocket send(string
$message , int $mode = 0)public ZMQSocket sendmulti(array
$message , int $mode = 0)public ZMQSocket setSockOpt(int
$key , mixed $value )public ZMQSocket unbind(string
}$dsn )The ZMQPoll classはじめに
クラス概要ZMQPoll
class ZMQPoll
{
/* メソッド */
public string add(mixed
$entry , int $type )public ZMQPoll clear()
public int count()
public array getLastErrors()
public int poll(array
&$readable , array &$writable , int $timeout = -1)public bool remove(mixed
}$item )The ZMQDevice classはじめに
クラス概要ZMQDevice
class ZMQDevice
{
/* メソッド */
public __construct(ZMQSocket
$frontend , ZMQSocket $backend , ZMQSocket $listener = ?)public ZMQDevice getIdleTimeout()
public ZMQDevice getTimerTimeout()
public void run()
public ZMQDevice setIdleCallback(callable
$cb_func , int $timeout , mixed $user_data = ?)public ZMQDevice setIdleTimeout(int
$timeout )public ZMQDevice setTimerCallback(callable
$cb_func , int $timeout , mixed $user_data = ?)public ZMQDevice setTimerTimeout(int
}$timeout ) |