Skip to content

Instantly share code, notes, and snippets.

@staticcat
staticcat / ZmqSocket_Dump
Created November 24, 2012 09:11
Function to dump what's on a ZmqSocket
public static void Dump(ZmqSocket socket, Encoding encoding)
{
if (socket == null) {
throw new ArgumentNullException("socket");
}
Console.WriteLine(new String('-', 38));
ZmqMessage message = socket.ReceiveMessage();
foreach (var frame in message)
{