- 授权协议: BSD
- 开发语言: Java
- 操作系统: 跨平台
- 软件首页: http://code.google.com/p/kryonet/
软件介绍
KryoNet这个Java类包提供了一套简洁的API来实现高效的,基于TCP和UDP协议的客户端/服务器NIO网络通信。KryoNet可以运行于桌面应用程序和Android平台中。由于KryoNet非常高效,所以特别适用于开发游戏应用程序和进程间通信。
示例代码:
Server server = new Server();
server.start();
server.bind(54555, 54777);
server.addListener(new Listener() {
public void received (Connection connection, Object object) {
if (object instanceof SomeRequest) {
SomeRequest request = (SomeRequest)object;
System.out.println(request.text);
SomeResponse response = new SomeResponse();
response.text = "Thanks!";
connection.sendTCP(response);
}
}
});
Tales from Facebook
Daniel Miller / Polity Press / 2011-4-1 / GBP 55.00
Facebook is now used by nearly 500 million people throughout the world, many of whom spend several hours a day on this site. Once the preserve of youth, the largest increase in usage today is amongst ......一起来看看 《Tales from Facebook》 这本书的介绍吧!
图片转BASE64编码
在线图片转Base64编码工具
RGB CMYK 转换工具
RGB CMYK 互转工具
