clojang.conn

close

(close conn)

connected?

(connected? this)

Determine if the connection is still alive.

deliver

(deliver this msg-or-exception)

Deliver messages or communication exceptions to the recipient.

exit

(exit dest-pid reason)

An alias for jiface.otp.connection/exit that automatically converts the reason argument to an appropriate Erlang type.

get-flags

(get-flags this)

get-msg-count

(get-msg-count this)

Return the number of messages currently waiting in the receive queue for this connection.

get-peer

(get-peer this)

Get information about the node at the peer end of this connection.

get-self

(get-self this)

Get information about the node at the local end of this connection.

get-trace-level

(get-trace-level this)

Get the trace level for this connection.

lookup-names

(lookup-names)(lookup-names inet-addr-str)(lookup-names inet-addr-str transport)

lookup-port

(lookup-port node)

Determine what port a node listens for incoming connections on.

publish-port

(publish-port node)

Register with Epmd, so that other nodes are able to find and connect to it.

receive

(receive connx)(receive connx timeout)

An alias for jiface.otp.connection/receive that returns the received data as Clojure data types.

receive-buf

(receive-buf this)(receive-buf this timeout)

Receive a raw (still encoded) message from a remote process.

receive-msg

(receive-msg connx)(receive-msg connx timeout)

An alias for jiface.otp.connection/receive-msg that returns the received data as Clojure data types.

receive-rpc

(receive-rpc connx)

An alias for jiface.otp.connection/receive-rpc that returns the received data as Clojure data types.

run

(run this)

send

(send connx dest msg)

An alias for jiface.otp.connection/send that also allows for mailbox and node name arguments to be symbols, keywords, or strings.

send-buf

(send-buf this desg msg)

Send a pre-encoded message to a process on a remote node.

send-rpc

(send-rpc connx mod fun)(send-rpc connx mod fun args)

An alias for jiface.otp.connection/send-rpc that also allows for mailbox and node name arguments to be symbols, keywords, or strings.

set-flags

(set-flags this flag-integer)

set-trace-level

(set-trace-level this level-integer)

Set the trace level for this connection.

unpublish-port

(unpublish-port node)

Unregister from Epmd.

use-port

(use-port port-num)

Set the port number to be used to contact the epmd process.