Skip to content
This repository has been archived by the owner on Jan 23, 2024. It is now read-only.

Commit

Permalink
Remove old poller code
Browse files Browse the repository at this point in the history
  • Loading branch information
trevorbernard committed Aug 9, 2014
1 parent d03c14b commit 67e6e8c
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions src/test/clojure/zeromq/zmq.clj
Original file line number Diff line number Diff line change
Expand Up @@ -181,25 +181,3 @@
(if-let [type (socket-types socket-type)]
(->ManagedSocket (ZMQ/zmq_socket (:address context) type))
(throw (IllegalArgumentException. (format "Unknown socket type: %s" socket-type)))))

(def ^:const poll-types
{:pollin 1
:pollout 2
:pollerr 4})

(defn create-poll-items [& items]
(let [^ByteBuffer bb (ByteBuffer/allocateDirect (* (count items) 16))]
(doseq [{:keys [^long socket fd events]} items]
(.putLong bb (int (or socket 0)))
(.putInt bb (int (or fd 0)))
(.putShort bb (short (or events 0)))
(.putShort bb (short 0)))
bb))

(defn check-poll
([poll-items index type]
)
([poll-items index type ^long timeout]
))


0 comments on commit 67e6e8c

Please sign in to comment.