c4d4bcc
Branches > client-handling-rewrite > c4d4bcc > files / src / net / bowmap
Update server bootstrap thing
Commit: c4d4bccf671a07056a4762ddb64df12cae0c83bf
Parent: e0255cb
1 changed file:
src/net/bowmap/core.clj view file
@@ -3,11 +3,12 @@ [aleph.tcp :as tcp] [manifold.stream :as s] [net.bowmap.client.state :as state]- [net.bowmap.packet.read :as read] [net.bowmap.packet-handling :as handle] [net.bowmap.packet.client :refer [encode-packet]]+ [net.bowmap.packet.read :as read] [net.bowmap.packet.server :as sp]) (:import+ [io.netty.bootstrap ServerBootstrap] [io.netty.buffer ByteBuf Unpooled] [io.netty.channel ChannelOption])) @@ -50,9 +51,8 @@ (defn start-server! [] (tcp/start-server #'client-handler {:port 25565- :bootstrap-transform (fn [bootstrap]- (.childOption bootstrap ChannelOption/TCP_NODELAY true)- bootstrap)}))+ :bootstrap-transform #(ServerBootstrap/.childOption % ChannelOption/TCP_NODELAY true)}))+ (defn -main [& _args] (start-server!) (println "Server Started"))