fszmq


PollingExtensions

Namespace: fszmq

Utilities for working with Polling from languages other than F#

Static members

Static memberDescription
AsPollIn(socket, callback)
Signature: (socket:Socket * callback:Action<Socket>) -> Poll

Creates a Poll item for the socket which will invoke the callback when the socket receives a message

AsPollIO(socket, callback)
Signature: (socket:Socket * callback:Action<Socket>) -> Poll

Creates a Poll item for the socket which will invoke the callback when the socket sends or receives a message

AsPollOut(socket, callback)
Signature: (socket:Socket * callback:Action<Socket>) -> Poll

Creates a Poll item for the socket which will invoke the callback when the socket receives a message

TryGetInput(socket, timeout, message)
Signature: (socket:Socket * timeout:int64 * message:byref<byte [] []>) -> bool

Polls the given socket, up to the given timeout, for an input message. Retuns true if input was received, in which case the message is assigned to the out parameter.

Fork me on GitHub