net.ty.bootstrap
A clojure facade to build netty bootstraps. In netty, bootstraps are helpers to get channels.
connect!
(connect! bs)
(connect! bs sa)
(connect! bs x y)
Attempt connection of a bootstrap. Accepts as pre-configured bootstrap, and optionally a SocketAddressor Host and Port.
local-address!
(local-address! bs x)
(local-address! bs x y)
Sets the bootstrap’s local address. Accepts either a SocketAddress or Host and Port.
nio-event-loop-group
(nio-event-loop-group nb-threads)
(nio-event-loop-group)
Yield a new NioEventLoopGroup
remote-address!
(remote-address! bs sa)
(remote-address! bs host port)
Set remote address for a client bootstrap, allows host and port to be provided as a SocketAddress
server-bootstrap
(server-bootstrap config)
Build a server bootstrap from a configuration map
set-child-handler!
(set-child-handler! bootstrap handler)
A server bootstrap has a child handler, this methods helps set it
set-group!
(set-group! bs group)
Set the group on top of which channels will be created and then handled.