Last active
September 26, 2021 20:41
-
-
Save duanebester/1f2747a6494e277d46912895624017e8 to your computer and use it in GitHub Desktop.
Buffer Socket Imports and Def
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns com.clunk.buffer-socket | |
(:require [clojure.core.async :as async]) | |
(:import | |
(java.nio ByteBuffer) | |
(java.nio.channels SocketChannel) | |
(java.net InetSocketAddress))) | |
(defrecord ByteBufferSocket [^SocketChannel client in-ch out-ch]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment