(socket-client port)
(socket-client port address)
Given a port and an optional address (localhost by default), returns an AsyncSocket which must be explicitly started and stopped by the consumer. Observes value of flush-on-newline var for purposes of socket flushing.
Given a port and an optional address (localhost by default), returns an AsyncSocket which must be explicitly started and stopped by the consumer. Observes value of *flush-on-newline* var for purposes of socket flushing.
(socket-server port)
(socket-server port backlog)
(socket-server port backlog bind-addr)
Given a port and optional backlog (the maximum queue length of incoming connection indications, 50 by default) and an optional bind address (localhost by default), starts and returns a socket server and a :connections channel that yields a new socket client on each connection. Observes value of flush-on-newline var for purposes of socket flushing.
Given a port and optional backlog (the maximum queue length of incoming connection indications, 50 by default) and an optional bind address (localhost by default), starts and returns a socket server and a :connections channel that yields a new socket client on each connection. Observes value of *flush-on-newline* var for purposes of socket flushing.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close