ZBaseSocket class
Base socket
- Implementers
Constructors
- ZBaseSocket(ZMQSocket _socket, ZContext _context)
-
Construct a new ZBaseSocket with a given underlying ZMQSocket
_socket
and the global ZContext_context
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
bind(
String address) → void - Creates an endpoint for accepting connections and binds to it.
-
close(
) → void - Closes the socket and releases underlying resources. Note after closing a socket it can't be reopened/reconncted again
-
connect(
String address) → void - Connects the socket to an endpoint and then accepts incoming connections on that endpoint.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
send(
List< int> data, {int flags = 0}) → void -
Sends the given
data
payload over this socket. -
sendFrame(
ZFrame frame, {int flags = 0}) → void -
Sends the given
frame
over this socket -
sendMessage(
ZMessage message, {int flags = 0}) → void -
Sends the given multi-part
message
over this socket -
sendString(
String string, {int flags = 0}) → void -
Sends the given
string
over this socket -
setCurvePublicKey(
String key) → void -
Sets the socket's long term public key.
You must set this on CURVE client sockets, see zmq_curve(7).
You can provide the
key
as a 40-character string encoded in the Z85 encoding format. The public key must always be used with the matching secret key. -
setCurveSecretKey(
String key) → void -
Sets the socket's long term secret key.
You must set this on both CURVE client and server sockets, see zmq_curve(7).
You can provide the
key
as a 40-character string encoded in the Z85 encoding format. -
setCurveServerKey(
String key) → void -
Sets the socket's long term server key.
You must set this on CURVE client sockets, see zmq_curve(7).
You can provide the
key
as a 40-character string encoded in the Z85 encoding format. This key must have been generated together with the server's secret key. -
setOption(
int option, String value) → void -
Set a socket
option
to a specificvalue
-
subscribe(
String topic) → void - The ZMQ_SUBSCRIBE option shall establish a new message filter on a ZMQ_SUB socket. Newly created ZMQ_SUB sockets shall filter out all incoming messages, therefore you should call this option to establish an initial message filter.
-
toString(
) → String -
A string representation of this object.
inherited
-
unsubscribe(
String topic) → void - The ZMQ_UNSUBSCRIBE option shall remove an existing message filter on a ZMQ_SUB socket. The filter specified must match an existing filter previously established with the ZMQ_SUBSCRIBE option. If the socket has several instances of the same filter attached the ZMQ_UNSUBSCRIBE option shall remove only one instance, leaving the rest in place and functional.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited