Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Adds otp-rpc-and-receive function

  • Loading branch information...
commit 1a80dc16c625aa4aac5ce826cd33c6784823a169 1 parent 55a8756
@videlalvaro authored
Showing with 8 additions and 0 deletions.
  1. +8 −0 src/closerl/core.clj
View
8 src/closerl/core.clj
@@ -97,6 +97,14 @@
[connection]
(.receiveRPC connection))
+(defn otp-rpc-and-receive
+ "Send a RPC request, receive the message and returns it
+ converted as a Clojure type"
+ [connection m f a]
+ (do
+ (.sendRPC connection m f a)
+ (otp-value (.receiveRPC connection))))
+
;; Marshalling
;; Based on trixx
(defn parse-integer [s]
Please sign in to comment.
Something went wrong with that request. Please try again.