public static void SetOption(this IZmqSocket source, SocketOpt option, byte[] buffer)
        {
            if (buffer == null)
            {
                throw new ArgumentNullException("buffer");
            }

            source.SetOption <byte[]>((int)option, buffer);
        }
        public static void SetOption(this IZmqSocket source, SocketOpt option, string value)
        {
            if (value == null)
            {
                throw new ArgumentNullException("value");
            }

            source.SetOption <string>((int)option, value);
        }
        public static void Bind(this IZmqSocket source, Transport transport, string address, uint port, int timeout = Socket.InfiniteTimeout)
        {
            var endpoint = BuildEndpoint(transport, address, port);

            if (timeout != Socket.InfiniteTimeout)
            {
                source.SetOption(SocketOpt.RCVTIMEO, timeout);
            }

            source.Bind(endpoint);
        }
 public static void SetOption(this IZmqSocket source, SocketOpt option, Int64 value)
 {
     source.SetOption <Int64>((int)option, value);
 }
 public static void SetOption(this IZmqSocket source, SocketOpt option, int value)
 {
     source.SetOption <int>((int)option, value);
 }