1.2.0 permalink Arrow_down_16x16

close-socket!

swank.util.net.sockets

  • (close-socket! socket)
Cleanly shutdown and close a java.net.Socket. This will not affect
an already running instance of SocketServer.

0 Examples top

Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source swank/util/net/sockets.clj:44 top

(defn close-socket!
  "Cleanly shutdown and close a java.net.Socket. This will not affect
   an already running instance of SocketServer."
  ([#^Socket socket]
     (doto socket
       (.shutdownInput)
       (.shutdownOutput)
       (.close))))
Vars in swank.util.net.sockets/close-socket!: defn doto
Used in 0 other vars

Comments top

No comments for close-socket!. Log in to add a comment.