Seed-IO介绍 即时通讯模块目前已经在开发中,随后将会给出Android/iOS的通讯组件。 Seed-IO基于Netty4开发,协议基于Protocol Buffers传输 目前通过Seed-IO的IOPlugin可实现SeedMVC的RPC调用,使用方法如下: **Server端:** ``` IOPlugin plugin = new IOPlugin(8176); plugin.loadConfig(new TomcatConfig()); plugin.install(); ``` **Client端** ``` public static void main(String[] args) { try { Socket socket = new Socket("localhost", 8176); String name = "/test/param.run"; String params = "p1=1&p2=2"; String type = "application/x-www-form-urlencoded"; socket.getOutputStream().write(MethodProtocol.create(name,params,type)); socket.getOutputStream().flush(); socket.close(); } catch (IOException e) { e.printStackTrace(); } } ```