ZMQTable of Contents
The ZMQ classIntroduction
Class synopsisZMQ
class ZMQ
{
/* Constants */
const
integer
ZMQ::SOCKET_PAIR
;
const
integer
ZMQ::SOCKET_PUB
;
const
integer
ZMQ::SOCKET_SUB
;
const
integer
ZMQ::SOCKET_REQ
;
const
integer
ZMQ::SOCKET_REP
;
const
integer
ZMQ::SOCKET_XREQ
;
const
integer
ZMQ::SOCKET_XREP
;
const
integer
ZMQ::SOCKET_PUSH
;
const
integer
ZMQ::SOCKET_PULL
;
const
integer
ZMQ::SOCKET_ROUTER
;
const
integer
ZMQ::SOCKET_DEALER
;
const
integer
ZMQ::SOCKET_XPUB
;
const
integer
ZMQ::SOCKET_XSUB
;
const
integer
ZMQ::SOCKET_STREAM
;
const
integer
ZMQ::SOCKOPT_HWM
;
const
integer
ZMQ::SOCKOPT_SNDHWM
;
const
integer
ZMQ::SOCKOPT_RCVHWM
;
const
integer
ZMQ::SOCKOPT_AFFINITY
;
const
integer
ZMQ::SOCKOPT_IDENTITY
;
const
integer
ZMQ::SOCKOPT_SUBSCRIBE
;
const
integer
ZMQ::SOCKOPT_UNSUBSCRIBE
;
const
integer
ZMQ::SOCKOPT_RATE
;
const
integer
ZMQ::SOCKOPT_RECOVERY_IVL
;
const
integer
ZMQ::SOCKOPT_RECONNECT_IVL
;
const
integer
ZMQ::SOCKOPT_RECONNECT_IVL_MAX
;
const
integer
ZMQ::SOCKOPT_MCAST_LOOP
;
const
integer
ZMQ::SOCKOPT_SNDBUF
;
const
integer
ZMQ::SOCKOPT_RCVBUF
;
const
integer
ZMQ::SOCKOPT_RCVMORE
;
const
integer
ZMQ::SOCKOPT_TYPE
;
const
integer
ZMQ::SOCKOPT_LINGER
;
const
integer
ZMQ::SOCKOPT_BACKLOG
;
const
integer
ZMQ::SOCKOPT_MAXMSGSIZE
;
const
integer
ZMQ::SOCKOPT_SNDTIMEO
;
const
integer
ZMQ::SOCKOPT_RCVTIMEO
;
const
integer
ZMQ::SOCKOPT_IPV4ONLY
;
const
integer
ZMQ::SOCKOPT_LAST_ENDPOINT
;
const
integer
ZMQ::SOCKOPT_TCP_KEEPALIVE_IDLE
;
const
integer
ZMQ::SOCKOPT_TCP_KEEPALIVE_CNT
;
const
integer
ZMQ::SOCKOPT_TCP_KEEPALIVE_INTVL
;
const
integer
ZMQ::SOCKOPT_TCP_ACCEPT_FILTER
;
const
integer
ZMQ::SOCKOPT_TCP_ACCEPT_FILTER
;
const
integer
ZMQ::SOCKOPT_DELAY_ATTACH_ON_CONNECT
;
const
integer
ZMQ::SOCKOPT_XPUB_VERBOSE
;
const
integer
ZMQ::SOCKOPT_ROUTER_RAW
;
const
integer
ZMQ::SOCKOPT_IPV6
;
const
integer
ZMQ::CTXOPT_MAX_SOCKETS
;
const
integer
ZMQ::POLL_IN
;
const
integer
ZMQ::POLL_OUT
;
const
integer
ZMQ::MODE_NOBLOCK
;
const
integer
ZMQ::MODE_DONTWAIT
;
const
integer
ZMQ::MODE_SNDMORE
;
const
integer
ZMQ::ERR_INTERNAL
;
const
integer
ZMQ::ERR_EAGAIN
;
const
integer
ZMQ::ERR_ENOTSUP
;
const
integer
ZMQ::ERR_EFSM
;
const
integer
ZMQ::ERR_ETERM
;
/* Methods */
private __construct
( void
)
}Predefined ConstantsZMQ Constant Types
The ZMQContext classIntroduction
Class synopsisZMQContext
class ZMQContext
{
/* Methods */
__construct
([ integer
$io_threads = 1
[, boolean $is_persistent = true
]] )
public mixed getOpt
( string
$key
)
public ZMQSocket getSocket
( integer
$type
[, string $persistent_id = null
[, callback $on_new_socket = null
]] )
public boolean isPersistent
( void
)
public ZMQContext setOpt
( integer
}$key
, mixed $value
)The ZMQSocket classIntroduction
Class synopsisZMQSocket
class ZMQSocket
{
/* Methods */
public ZMQSocket bind
( string
$dsn
[, boolean $force = false
] )
public ZMQSocket connect
( string
$dsn
[, boolean $force = false
] )
__construct
( ZMQContext
$context
, int $type
[, string $persistent_id = null
[, callback $on_new_socket = null
]] )
public ZMQSocket disconnect
( string
$dsn
)
public array getEndpoints
( void
)
public string getPersistentId
( void
)
public integer getSocketType
( void
)
public mixed getSockOpt
( string
$key
)
public boolean isPersistent
( void
)
public string recv
([ integer
$mode = 0
] )
public string recvMulti
([ integer
$mode = 0
] )
public ZMQSocket send
( string
$message
[, integer $mode = 0
] )
public ZMQSocket send
( array
$message
[, integer $mode = 0
] )
public ZMQSocket setSockOpt
( integer
$key
, mixed $value
)
public ZMQSocket unbind
( string
}$dsn
)The ZMQPoll classIntroduction
Class synopsisZMQPoll
class ZMQPoll
{
/* Methods */
public string add
( mixed
$entry
, integer $type
)
public ZMQPoll clear
( void
)
public integer count
( void
)
public array getLastErrors
( void
)
public integer poll
( array
&$readable
, array &$writable
[, integer $timeout = -1
] )
public boolean remove
( mixed
}$item
)The ZMQDevice classIntroduction
Class synopsisZMQDevice
class ZMQDevice
{
/* Methods */
__construct
( ZMQSocket
$frontend
, ZMQSocket $backend
[, ZMQSocket $listener
] )
public ZMQDevice getIdleTimeout
( void
)
public ZMQDevice getTimerTimeout
( void
)
public void run
( void
)
public ZMQDevice setIdleCallback
( callable
$cb_func
, integer $timeout
[, mixed $user_data
] )
public ZMQDevice setIdleTimeout
( integer
$timeout
)
public ZMQDevice setTimerCallback
( callable
$cb_func
, integer $timeout
[, mixed $user_data
] )
public ZMQDevice setTimerTimeout
( integer
}$timeout
) |